# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=c-stdaux
pkgver=1.5.0
pkgrel=0
pkgdesc="Auxiliary macros and functions for the C standard library"
url="https://github.com/c-util/c-stdaux"
arch="noarch"
license="Apache-2.0 OR LGPL-2.1-or-later"
makedepends="meson"
subpackages="$pkgname-dev"
source="https://github.com/c-util/c-stdaux/archive/v$pkgver/c-stdaux-$pkgver.tar.gz"

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

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

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

sha512sums="
30e2cc3ff8df40b2c3dc1409d47fa0f65467a853c75e500f1f973f6f2108e036601032620e40409fde58e2239b751f2736b326c11b45f2e43cc1064f341aa7b7  c-stdaux-1.5.0.tar.gz
"
