Date: Sunday, December 24, 2017 @ 14:13:28 Author: heftig Revision: 275757
0.10.7-1 Modified: libgexiv2/trunk/PKGBUILD ----------+ PKGBUILD | 47 +++++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 22 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-12-24 14:13:25 UTC (rev 275756) +++ PKGBUILD 2017-12-24 14:13:28 UTC (rev 275757) @@ -3,37 +3,40 @@ # Contributor: Ionut Biru <[email protected]> pkgname=libgexiv2 -pkgver=0.10.6 -pkgrel=2 -pkgdesc='GObject-based wrapper around the Exiv2 library' -url='https://wiki.gnome.org/Projects/gexiv2' -arch=('x86_64') -license=('GPL2') -depends=('exiv2' 'glib2') -makedepends=('python-gobject' 'python2-gobject' 'gobject-introspection' 'setconf' 'vala') -source=("https://download.gnome.org/sources/${pkgname/lib/}/${pkgver%.*}/${pkgname/lib/}-$pkgver.tar.xz") -sha256sums=('132788919667254b42c026ab39ab3c3a5be59be8575c05fa4b371ca8aed55825') +pkgver=0.10.7 +pkgrel=1 +pkgdesc="GObject-based wrapper around the Exiv2 library" +url="https://wiki.gnome.org/Projects/gexiv2" +arch=(x86_64) +license=(GPL2) +depends=(exiv2 glib2) +makedepends=(python-gobject python2-gobject gobject-introspection vala git meson) +_commit=574141b66c269b34237275591f3bd5fa1ee16184 # tags/gexiv2-0.10.7^0 +source=("git+https://git.gnome.org/browse/gexiv2#commit=$_commit") +sha256sums=('SKIP') +pkgver() { + cd gexiv2 + git describe --tags | sed 's/^gexiv2-//;s/-/+/g' +} + prepare() { - cd "${pkgname/lib/}-$pkgver" - - # fix FS#51673 - setconf Makefile.am typelibdir '$(libdir)/girepository-1.0' - autoreconf -vi + cd gexiv2 } build() { - cd "${pkgname/lib/}-$pkgver" + arch-meson gexiv2 build \ + -Denable-gtk-doc=true + ninja -C build +} - # In order for the build process to include any python-related files, - # 'import gi; print(gi._overridesdir)' must work with either python or - # python2. The gi module is provided by python-gobject and python2-gobject. - ./configure --prefix=/usr --enable-introspection - make +check() { + cd build + meson test } package() { - make -C "${pkgname/lib/}-$pkgver" DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" ninja -C build install } # vim: ts=2 sw=2 et:
