# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=sratom
pkgver=0.6.18
pkgrel=0
pkgdesc="library for serialising LV2 atoms to and from RDF"
url="https://drobilla.net/software/sratom"
arch="all"
license="ISC"
makedepends="
	meson
	serd-dev
	sord-dev
	lv2-dev
	"
subpackages="$pkgname-dev"
source="https://download.drobilla.net/sratom-$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="
3f78f845974cf7d8a7166e6430a9e8a1454c98b4aea065bd7e66da01dba7a210edc540e17613985ddd8f9124ccf8500b71646942d988f4b9c65dd53f0d18f6cf  sratom-0.6.18.tar.xz
"
