aboutsummaryrefslogtreecommitdiffstats
path: root/community/libxmlb/APKBUILD
blob: e1937900051fec24f5142bb05a350a239b1f01d8 (plain) (blame)
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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=libxmlb
pkgver=0.2.0
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 gobject-introspection-dev"
checkdepends="shared-mime-info"
subpackages="$pkgname-dev:_dev $pkgname-dbg"
source="$pkgname-$pkgver.tar.gz::https://github.com/hughsie/libxmlb/archive/$pkgver.tar.gz"

build() {
	abuild-meson \
		-Dgtkdoc=false \
		-Dtests=true \
		-Dstemmer=false \
		-Dintrospection=true \
		output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	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="cff4245a47a942dd37675921ba753858a3ee0572500a1cd7291d2a063fa7fa9d9157c167bf33694e4e0204504d7e88fbfd2873c4b9851247d6cdb338c2d587a8  libxmlb-0.2.0.tar.gz"