# Contributor: Leo # Maintainer: Leo pkgname=libxmlb pkgver=0.1.10 pkgrel=0 pkgdesc="Library to help create and query binary XML blobs" url="https://github.com/hughsie/libxmlb" arch="all" license="LGPL-2.1-or-later" makedepends="meson glib-dev util-linux-dev gobject-introspection-dev" checkdepends="shared-mime-info" subpackages="$pkgname-dev:_dev" source="$pkgname-$pkgver.tar.gz::https://github.com/hughsie/libxmlb/archive/$pkgver.tar.gz" build() { meson \ --prefix=/usr \ -Dgtkdoc=false \ -Dtests=true \ -Dstemmer=false \ -Dintrospection=true \ build ninja -C build } check() { ninja -C build test } package() { DESTDIR="$pkgdir" ninja -C build install rm -rf "$pkgdir"/usr/share/installed-tests } _dev() { default_dev mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/libexec "$subpkgdir"/usr } sha512sums="81f5edf776241580c0e47f43f9b15ecbc695022007cf90070f95ca190f2a270f15a856a89246c772f52e93b8eed88d228c5f426cd4dc84e8e6fdf2556b8714b3 libxmlb-0.1.10.tar.gz"