1 # Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
2 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 # Contributor: David Runge <dvzrv@archlinux.org>
8 pkgdesc="GLib wrapper for libgit2"
9 url="https://wiki.gnome.org/Projects/Libgit2-glib"
13 makedepends=('gobject-introspection' 'glib2' 'libgit2' 'gtk-doc' 'meson'
14 'python-gobject' 'vala' 'git')
15 _commit=391b764ac7e2915ed564f5e144cfdb1ae51fbc4e # tags/v1.0.0.1^0
16 source=("git+https://gitlab.gnome.org/GNOME/libgit2-glib.git#commit=$_commit")
21 git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
29 arch-meson $pkgname build -D gtk_doc=true
30 meson compile -C build
34 meson test -C build --print-errorlogs
38 depends+=('libgio-2.0.so' 'libgit2.so' 'libglib-2.0.so' 'libgobject-2.0.so')
39 provides+=('libgit2-glib-1.0.so')
41 meson install -C build --destdir "$pkgdir"
43 # strip $pkgdir from embedded paths:
44 python -m compileall -d "/usr/lib" "$pkgdir/usr/lib"
45 python -O -m compileall -d "/usr/lib" "$pkgdir/usr/lib"
47 install -vDm 644 $pkgname/{AUTHORS,ChangeLog,NEWS,README} \
48 -t "${pkgdir}/usr/share/doc/${pkgname}"