# Maintainer: David Demelier <markand@malikania.fr>
pkgname=zix
pkgver=0.6.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 -C output
}

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

sha512sums="
3b072f00481a34e8b900311c2dc77fd73a63a34f69ea953be6b714f5bcbdebcc3cdd81feae73b5ad2bdc09a4bac122e12d9035cfc417ca41dfe5230d1fe13d9c  zix-0.6.2.tar.xz
"
