aboutsummaryrefslogtreecommitdiffstats
path: root/main/json-glib/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-07-16 18:16:37 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-07-16 18:16:37 +0000
commit8264c47d69759212ca52c3d98eb40dda47286882 (patch)
treeb110023b50c74c5c9c9f6a6a7f8af99ce6879c87 /main/json-glib/APKBUILD
parent25e967c8e244846f5cf3a45f0c5ada6131f35db9 (diff)
downloadaports-8264c47d69759212ca52c3d98eb40dda47286882.tar.bz2
aports-8264c47d69759212ca52c3d98eb40dda47286882.tar.xz
main/json-glib: upgrade to 1.4.2
Diffstat (limited to 'main/json-glib/APKBUILD')
-rw-r--r--main/json-glib/APKBUILD42
1 files changed, 28 insertions, 14 deletions
diff --git a/main/json-glib/APKBUILD b/main/json-glib/APKBUILD
index a8210add71..9344125157 100644
--- a/main/json-glib/APKBUILD
+++ b/main/json-glib/APKBUILD
@@ -1,36 +1,50 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=json-glib
-pkgver=1.2.8
+pkgver=1.4.2
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"
-subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+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"
-_builddir="$srcdir"/$pkgname-$pkgver
+buiddir="$srcdir"/$pkgname-$pkgver
build() {
cd $srcdir/$pkgname-$pkgver
- ./configure \
- --build=$CBUILD \
- --host=$CHOST \
- --prefix=/usr \
- || return 1
- make
+ meson \
+ --prefix /usr \
+ --libdir /usr/lib \
+ --buildtype release \
+ --default-library shared \
+ -Ddocs=true \
+ . build
+ ninja -C build
+}
+
+check() {
+ ninja -C "$builddir"/build test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+
+ DESTDIR="$pkgdir" ninja -C "$builddir"/build install
}
dev() {
- default_dev || return 1
+ default_dev
mkdir -p "$subpkgdir"/usr/
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
-sha512sums="85d8ad431363b8698d71684927b8aa38749d99ea7236334ec09fd81482489f1ab9cb12dabcbe13f6b6ffd7e5d70ade47a36b511e275915d4aa858af647db90ba json-glib-1.2.8.tar.xz"
+tests() {
+ pkgdesc="Tests for the json-glib package"
+ mkdir -p "$subpkgdir"/usr/
+ mv "$pkgdir"/usr/share \
+ "$pkgdir"/usr/libexec \
+ "$subpkgdir"/usr/
+}
+
+sha512sums="e1495c4d0167db4cc31c7d9a6059de1f9126ab48fb45666a1bd10c69e10df9db195160cfba35cfac9c438a868559068e39402adf98a3e416d425c095c0946a51 json-glib-1.4.2.tar.xz"