desktop/json-glib/PKGBUILD

35 lines
700 B
Bash
Raw Permalink Normal View History

pkgname=json-glib
2017-10-25 05:17:50 +08:00
pkgver=1.4.2
pkgrel=1
pkgdesc="JSON library built on GLib"
2014-04-12 04:17:04 +08:00
arch=('x86_64')
url="http://live.gnome.org/JsonGlib"
license=('GPL')
depends=('glib2')
2017-10-25 05:17:50 +08:00
makedepends=('gobject-introspection' 'python3' 'meson' 'gtk-doc')
2014-05-07 05:33:20 +08:00
source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver:0:3}/${pkgname}-${pkgver}.tar.xz)
2017-10-25 05:17:50 +08:00
sha256sums=('2d7709a44749c7318599a6829322e081915bdc73f5be5045882ed120bb686dc8')
2014-05-07 05:33:20 +08:00
2017-10-25 05:17:50 +08:00
prepare() {
mkdir build
cd $pkgname-$pkgver
}
2017-10-25 05:17:50 +08:00
build() {
cd build
meson setup --prefix=/usr --buildtype=release ../$pkgname-$pkgver \
--libexecdir=/usr/lib -Ddocs=true
ninja
}
2017-10-25 05:17:50 +08:00
check() {
cd build
meson test
}
2017-10-25 05:17:50 +08:00
package() {
cd build
DESTDIR="$pkgdir" ninja install
}