aboutsummaryrefslogtreecommitdiffstats
path: root/community/json-glib/APKBUILD
blob: a913724559a8ecef6527e0398e15b42aa48d5c86 (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
42
43
44
45
46
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=json-glib
pkgver=1.6.6
pkgrel=0
pkgdesc="JSON library built on GLib"
arch="all"
url="https://wiki.gnome.org/Projects/JsonGlib"
license="LGPL-2.1-or-later"
makedepends="gobject-introspection-dev glib-dev meson"
subpackages="$pkgname-dev  $pkgname-lang $pkgname-tests $pkgname-dbg"
source="https://download.gnome.org/sources/json-glib/${pkgver%.*}/json-glib-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Dgtk_doc=disabled \
		.  build
	meson compile ${JOBS:+-j ${JOBS}} -C build
}

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

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

dev() {
	default_dev
	mkdir -p "$subpkgdir"/usr/
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

tests() {
	pkgdesc="Tests for the json-glib package"
	mkdir -p "$subpkgdir"/usr/
	mv "$pkgdir"/usr/share \
		"$pkgdir"/usr/libexec \
		"$subpkgdir"/usr/
}

sha512sums="
b9a737e4ba3ecdfb9cb8f5fb751cc74e5b1553664d3088c44a1f9e5396d4037958af214dcd290ddf5af98088f46167e10e371e134e1de5cbb7aec84c5c0fd017  json-glib-1.6.6.tar.xz
"