# Maintainer: David Demelier <markand@malikania.fr>
pkgname=zix
pkgver=0.4.2
pkgrel=0
pkgdesc="lightweight C99 portability and data structure library"
url="http://drobilla.net/category/zix/"
arch="all"
license="ISC"
makedepends="meson"
subpackages="$pkgname-dev $pkgname-libs"
source="https://download.drobilla.net/zix-$pkgver.tar.xz"

build() {
	abuild-meson -Db_lto=true . output
	meson compile -C output
}

check() {
	meson test --print-errorlogs --no-rebuild -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
b8fb931a3e9ab5a67f6da57a07bf10b91e7f861c8cf39db14c49c083a9983a0971cc6bc6abcb54a83c00471b386e377cb9bb51e2edd945ba07b9ae43a35964cc  zix-0.4.2.tar.xz
"
