summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1f0c70866c7ecbe7ae43d0a07e98648ecd7ddd29 (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
# Mantainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>
# Old mantainer: Christian Hesse <mail@eworm.de>

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

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

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

check() {
  meson test -C build
}

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