# Maintainer: Natanael Copa pkgname=json-glib 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 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 fuzzy-compare-for-float.patch " 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="e1495c4d0167db4cc31c7d9a6059de1f9126ab48fb45666a1bd10c69e10df9db195160cfba35cfac9c438a868559068e39402adf98a3e416d425c095c0946a51 json-glib-1.4.2.tar.xz 266879db80fbd0e67e479e2b5736be2d562f8b2e2c6f812a40a7404be5987c4b1a5f0c79358ced810e67acc7e66d3e8ef33edc3c62a6ffebb50e7f0a2f406eb8 fuzzy-compare-for-float.patch"