Date: Tuesday, September 27, 2016 @ 14:10:02 Author: heftig Revision: 277048
1.0-1 Modified: gssdp/trunk/PKGBUILD ----------+ PKGBUILD | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-09-27 14:08:09 UTC (rev 277047) +++ PKGBUILD 2016-09-27 14:10:02 UTC (rev 277048) @@ -3,7 +3,7 @@ # Contributor: György Balló <ball...@freestart.hu> pkgname=gssdp -pkgver=0.14.16 +pkgver=1.0 pkgrel=1 pkgdesc="A GObject-based API for handling resource discovery and announcement over SSDP" arch=(i686 x86_64) @@ -10,24 +10,35 @@ url="http://gupnp.org/" license=(LGPL) depends=(libsoup) -makedepends=(gobject-introspection gtk3 gtk-doc vala) +makedepends=(gobject-introspection gtk3 gtk-doc vala autoconf-archive git) optdepends=('gtk3: gssdp-device-sniffer') -source=(https://download.gnome.org/sources/${pkgname}/${pkgver:0:4}/${pkgname}-${pkgver}.tar.xz) -sha256sums=('54520bfb230b9c8c938eba88d87df44e04749682c95fb8aa381d13441345c5b2') +_commit=406e13b89ec350e2e3013b8756f0a6f0bdcfb36a +source=("git://git.gnome.org/gssdp#commit=$_commit") +sha256sums=('SKIP') +pkgver() { + cd $pkgname + git describe --tags | sed 's/^gssdp-//;s/-/+/g' +} + +prepare() { + cd $pkgname + NOCONFIGURE=1 ./autogen.sh +} + build() { - cd $pkgname-$pkgver + cd $pkgname ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --disable-static + --disable-static --enable-gtk-doc --enable-compile-warnings=minimum make } check() { - cd $pkgname-$pkgver + cd $pkgname make check } package() { - cd $pkgname-$pkgver + cd $pkgname make DESTDIR="$pkgdir" install }