summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: be3bee0e0e573b6df60db3d8578e22afbdd9f198 (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
pkgname=walbottle-git
_name=walbottle
pkgver=0.2.0.r71.ge643df3
pkgrel=2
pkgdesc="Walbottle is a project for generating JSON unit test vectors from JSON Schemas. It provides a library, libwalbottle, which implements JSON Schema parsing and test vector generation."
arch=('x86_64' 'aarch64')
url="https://gitlab.com/walbottle/$_name"
conflicts=('walbottle')
provides=('walbottle')
license=('LGPL2.1')
depends=('json-glib')
makedepends=('git' 'gobject-introspection' 'meson')
provides=('libwalbottle-0.so')
source=("$_name::git+$url.git")
sha512sums=('SKIP')

pkgver() {
  cd "$_name"
  git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}


build() {
    arch-meson $_name build -Dgtk_doc=true
    meson compile -C build
}

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