mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-09 23:51:37 +01:00
51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=json-glib
|
|
pkgver=1.4.4
|
|
pkgrel=0
|
|
pkgdesc="JSON library built on GLib"
|
|
arch="all"
|
|
url="http://live.gnome.org/JsonGlib"
|
|
license="GPL"
|
|
depends=""
|
|
makedepends="gobject-introspection-dev glib-dev meson gtk-doc"
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-tests"
|
|
source="https://download.gnome.org/sources/json-glib/${pkgver%.*}/json-glib-$pkgver.tar.xz"
|
|
|
|
buiddir="$srcdir"/$pkgname-$pkgver
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
meson \
|
|
--prefix /usr \
|
|
--libdir /usr/lib \
|
|
--buildtype release \
|
|
--default-library shared \
|
|
-Ddocs=true \
|
|
. build
|
|
ninja -C build
|
|
}
|
|
|
|
check() {
|
|
ninja -C "$builddir"/build test
|
|
}
|
|
|
|
package() {
|
|
|
|
DESTDIR="$pkgdir" ninja -C "$builddir"/build install
|
|
}
|
|
|
|
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="cf56a99dce3938b5c0075810f105719836fac65392da33a49b26ebf33aee1fab89ca9fac58059a2008d688ecc75a3e524de60621a5b027d566963541f38b971f json-glib-1.4.4.tar.xz"
|