Date: Thursday, September 22, 2016 @ 10:33:28 Author: jgc Revision: 276825
upgpkg: libzapojit 0.0.3+11+g840627d-1 Modified: libzapojit/trunk/PKGBUILD ----------+ PKGBUILD | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-09-22 10:27:04 UTC (rev 276824) +++ PKGBUILD 2016-09-22 10:33:28 UTC (rev 276825) @@ -2,24 +2,36 @@ # Maintainer: Jan Alexander Steffens (heftig) <[email protected]> pkgname=libzapojit -pkgver=0.0.3 -pkgrel=2 +pkgver=0.0.3+11+g840627d +pkgrel=1 pkgdesc="GLib/GObject wrapper for the SkyDrive and Hotmail REST APIs" arch=('i686' 'x86_64') license=('GPL') depends=('libsoup' 'gnome-online-accounts') -makedepends=('intltool' 'gobject-introspection') +makedepends=('intltool' 'gobject-introspection' 'gnome-common' 'git' 'gtk-doc') url="http://www.gnome.org" -source=(https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz) -sha256sums=('3d25f99329105abb99d1e9651b0aa1842065456ea54c22970a7330e9f3d1c37e') +_commit=840627d582534dafff7e05c090fb6e1a65ed2199 +source=("git://git.gnome.org/libzapojit#commit=$_commit") +sha256sums=('SKIP') +pkgver() { + cd $pkgname + git describe --tags | sed 's/-/+/g' +} + +prepare() { + cd $pkgname + NOCONFIGURE=1 ./autogen.sh +} + build() { - cd "$pkgname-$pkgver" - ./configure --prefix=/usr --disable-static + cd $pkgname + ./configure --prefix=/usr --disable-static --enable-gtk-doc + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } package() { - cd "$pkgname-$pkgver" + cd $pkgname make DESTDIR="$pkgdir" install }
