# Contributor: Alexey Yerin <yyp@disroot.org>
# Maintainer: Alexey Yerin <yyp@disroot.org>
pkgname=libsfdo
pkgver=0.1.4
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 --print-errorlogs -C output
}

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

sha512sums="
53360c39a537bb158dff1bd69c5abe1f2682929e946ce0d4fe55a424820946399995d883cbd89bf04bc6a0abe8db593adcbf3c716020d746aac4d73ba9d80023  libsfdo-0.1.4.tar.gz
"
