# Contributor: Alexey Yerin <yyp@disroot.org>
# Maintainer: Alexey Yerin <yyp@disroot.org>
pkgname=libsfdo
pkgver=0.1.3
pkgrel=0
pkgdesc="A collection of libraries which implement freedesktop.org specifications"
url="https://gitlab.freedesktop.org/vyivel/libsfdo"
arch="all"
license="BSD-2-Clause"
makedepends="meson"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://gitlab.freedesktop.org/vyivel/libsfdo/-/archive/v$pkgver/libsfdo-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

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="
4ea944ce58687a70930b49124af5bc4d8e590dbf0b29094d2ef7f405ee3e6e0e24f090ba292c003073551f4cb9713476b4ee3b6ac8f00da28a11312bbe6a3208  libsfdo-0.1.3.tar.gz
"
