summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 728b8f64953436a5f2f7cd42e7c4030abf36d96a (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
# Contributor: Pellegrino Prevete <pellegrinoprevete@gmail.com>
# Contributor: Christian Hesse <mail@eworm.de>

_pkgname=libgit2-glib
pkgname=$_pkgname-git
pkgver=1.2.1.r1.gca9e906
pkgrel=1
pkgdesc="GLib wrapper for libgit2"
arch=('any')
url="https://gitlab.gnome.org/GNOME/libgit2-glib"
license=(GPL)
depends=('glib2' 'libgit2' 'gobject-introspection' 'python-gobject')
makedepends=('git' 'gnome-common' 'gtk-doc' 'meson' 'vala' 'glib2-devel')
source=("git+https://gitlab.gnome.org/GNOME/$_pkgname")
conflicts=($_pkgname)
provides=($_pkgname)
sha512sums=('SKIP')

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

build() {
  arch-meson $_pkgname build
  meson compile -C build
}

check() {
  meson test -C build
}

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