# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=c-list
pkgver=3.1.0
pkgrel=0
pkgdesc="Circular Intrusive Double Linked List Collection (header-only library)"
url="https://github.com/c-util/c-list"
arch="noarch"
license="Apache-2.0 OR LGPL-2.1-or-later"
makedepends="meson"
subpackages="$pkgname-dev"
source="https://github.com/c-util/c-list/archive/v$pkgver/c-list-$pkgver.tar.gz"

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="
2ba347e52608c231cc27ba5a08a912bf3ffabb907561080714cf58e014d9733a437e4a1d29feab547894c9507361f00d57b4d54976186ceb94c5449c0ffbb0d3  c-list-3.1.0.tar.gz
"
