summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25ec63e416ee16cbfb0adb61bb75c5ac05ea19db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: a821

pkgname=json-glib-git
pkgver=1.10.6.r5.g94a3109
pkgrel=1
pkgdesc="JSON library built on GLib"
url="https://wiki.gnome.org/Projects/JsonGlib"
arch=(x86_64)
license=('LGPL-2.1-or-later')
depends=('glib2')
makedepends=(
  docbook-xsl
  gi-docgen
  git
  glib2-devel
  gobject-introspection
  meson
  python-docutils
)
conflicts=('json-glib')
provides=('json-glib' 'libjson-glib-1.0.so')
source=("git+https://gitlab.gnome.org/GNOME/json-glib.git")
sha256sums=('SKIP')

pkgver() {
  cd ${pkgname%-git}
  git describe --long --tags | sed 's/-/.r/;s/-/./g'
}

build() {
  arch-meson -D man=true -D installed_tests=false build json-glib
  ninja -C build
}

check() {
  meson test -C build
}

package() {
  DESTDIR="$pkgdir" meson install -C build
}