summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0fe00acdb443326b7f60517c877cf05438b92f16 (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
# Contributor: Balló György <ballogyor+arch at gmail dot com>

pkgname=gresg
pkgver=0.4.0+9+g207aa8b
pkgrel=1
pkgdesc="XML resources generator"
arch=(x86_64)
url="https://gitlab.com/esodan/gresg"
license=(GPL3)
depends=(gxml)
makedepends=(git meson vala)
_commit=207aa8ba0e5fa3c5d3236ffb1783cc5a20e8842a  # master~2
source=("git+https://gitlab.com/esodan/gresg#commit=$_commit")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/-/+/g'
}

build() {
  arch-meson $pkgname build
  ninja -C build
}

check() {
  meson test -C build --print-errorlogs
}

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