diff options
author | Britney Fransen <brfransen@gmail.com> | 2019-02-02 20:19:24 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2019-02-02 20:19:24 (GMT) |
commit | 710b1a915e608773be910d73c8ddf2ac69d061e0 (patch) | |
tree | 665e0d5bbc1d04c9193f3eb2aea78243b8fdf102 | |
parent | 0494701cfa3d774ce2e89320fc4c75a6ef966944 (diff) | |
download | linhes_pkgbuild-710b1a915e608773be910d73c8ddf2ac69d061e0.zip linhes_pkgbuild-710b1a915e608773be910d73c8ddf2ac69d061e0.tar.gz linhes_pkgbuild-710b1a915e608773be910d73c8ddf2ac69d061e0.tar.bz2 |
json-glib: update to 1.4.4
-rw-r--r-- | abs/extra/json-glib/PKGBUILD | 48 |
1 files changed, 28 insertions, 20 deletions
diff --git a/abs/extra/json-glib/PKGBUILD b/abs/extra/json-glib/PKGBUILD index 9ad0257..cf67fe9 100644 --- a/abs/extra/json-glib/PKGBUILD +++ b/abs/extra/json-glib/PKGBUILD @@ -1,30 +1,38 @@ -# $Id$ -# Maintainer: Ionut Biru <ibiru@archlinux.org> +# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> +# Contributor: Ionut Biru <ibiru@archlinux.org> pkgname=json-glib -pkgver=1.0.2 +pkgver=1.4.4 pkgrel=1 pkgdesc="JSON library built on GLib" -arch=('i686' 'x86_64') -url="http://live.gnome.org/JsonGlib" -license=('GPL') -depends=('glib2') -makedepends=('gobject-introspection') -source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver:0:3}/${pkgname}-${pkgver}.tar.xz) -sha256sums=('887bd192da8f5edc53b490ec51bf3ffebd958a671f5963e4f3af32c22e35660a') +url="https://wiki.gnome.org/Projects/JsonGlib" +arch=(x86_64) +license=(GPL) +depends=(glib2) +makedepends=(gobject-introspection git gtk-doc meson) +_commit=700a8bc414991d35ff3f79607547d4beedac8629 # tags/1.4.4^0 +source=("git+https://gitlab.gnome.org/GNOME/json-glib.git#commit=$_commit") +sha256sums=('SKIP') -build(){ - cd ${srcdir}/${pkgname}-${pkgver} - ./configure --prefix=/usr - make +pkgver() { + cd $pkgname + git describe --tags | sed 's/-/+/g' } -package(){ - cd ${srcdir}/${pkgname}-${pkgver} - make DESTDIR=${pkgdir} install +prepare() { + cd $pkgname } -check(){ - cd "${srcdir}/${pkgname}-${pkgver}" - make check +build() { + arch-meson $pkgname build -D docs=true -D man=true + ninja -C build +} + +check() { + meson test -C build +} + +package() { + DESTDIR="$pkgdir" meson install -C build + rm -r "$pkgdir"/usr/{lib,share}/installed-tests } |