summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d21f708eb11a9ee3c946e3a1fb5d682944a0422 (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
42
# Maintainer: Ivan Semkin (ivan at semkin dot ru)
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>

_pkgname=template-glib
pkgname=template-glib-git
pkgver=3.27.90
pkgrel=1
pkgdesc="A templating library for GLib"
url="https://git.gnome.org/browse/template-glib"
arch=(x86_64)
license=(LGPL)
conflicts=(template-glib)
provides=(template-glib)
depends=(glib2 gobject-introspection-runtime)
makedepends=(git meson vala gobject-introspection gtk-doc)
source=("git+https://git.gnome.org/browse/template-glib")
sha256sums=('SKIP')

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

prepare() {
  mkdir -p build
}

build() {
  cd build
  arch-meson ../$_pkgname -Denable_gtk_doc=true
  ninja
}

check() {
  cd build
  meson test
}

package() {
  cd build
  DESTDIR="$pkgdir" ninja install
}