# Maintainer: Alex McGrath <amk@amk.ie>
pkgname=tllist
pkgver=1.1.0
pkgrel=0
pkgdesc="A C header file only implementation of a typed linked list"
url="https://codeberg.org/dnkl/tllist"
arch="all"
license="MIT"
makedepends="meson"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://codeberg.org/dnkl/tllist/archive/$pkgver.tar.gz"
builddir="$srcdir/tllist"

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

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

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

sha512sums="
9aade353a3ce4edf5ddc4ef85c1926343d9f88c9c8ee3994f0df89eefeb3b3e0ab168cf0c9a2ca4a858215c2a328462d4b5bf182134b5deb3b3a0e15af4006fe  tllist-1.1.0.tar.gz
"
