aboutsummaryrefslogtreecommitdiffstats
path: root/community/libxmlb/APKBUILD
blob: 64d854d56dff2f45bbf3f4fe4b743a99408890db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=libxmlb
pkgver=0.1.13
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
	rm -rf "$pkgdir"/usr/libexec/installed-tests
}

_dev() {
	default_dev
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/libexec "$subpkgdir"/usr
}

sha512sums="ae2c043db0c3a9719c1527933e087825068f970bde28bc7b507a6535b51133d463b1dce6c8b02148a555bb28868ab563f7bb01e6324661dac92fab556c9a39b0  libxmlb-0.1.13.tar.gz"