[arch-commits] Commit in gupnp/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Tue Sep 27 14:15:12 UTC 2016


    Date: Tuesday, September 27, 2016 @ 14:15:11
  Author: heftig
Revision: 277052

1.0.0-1

Modified:
  gupnp/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++++++++++---------
 1 file changed, 17 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-09-27 14:14:45 UTC (rev 277051)
+++ PKGBUILD	2016-09-27 14:15:11 UTC (rev 277052)
@@ -3,7 +3,7 @@
 # Contributor: György Balló <ballogy at freestart.hu>
 
 pkgname=gupnp
-pkgver=0.20.18
+pkgver=1.0.0
 pkgrel=1
 pkgdesc="An object-oriented UPNP framework"
 arch=(i686 x86_64)
@@ -10,28 +10,36 @@
 url="http://gupnp.org/"
 license=(LGPL)
 depends=(gssdp util-linux)
-makedepends=(gobject-introspection gtk-doc vala) 
+makedepends=(gobject-introspection gtk-doc vala autoconf-archive git) 
 optdepends=('python2: gupnp-binding-tool')
-source=(https://download.gnome.org/sources/${pkgname}/${pkgver:0:4}/${pkgname}-${pkgver}.tar.xz)
-sha256sums=('c5e0e11061f8d0ff9c8dccc196f39c45a49c0153c9a72abf6290ab34d1cbb021')
+_commit=d4e21454060970bec6376c8dfcd72f7e04e1ad44
+source=("git://git.gnome.org/gupnp#commit=$_commit")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^gupnp-//;s/-/+/g'
+}
+
 prepare() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   sed -i '1s|^#!.*python$|&2|' tools/gupnp-binding-tool
+  NOCONFIGURE=1 ./autogen.sh
 }
+
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
-              --disable-static --with-context-manager=linux
+              --disable-static --with-context-manager=linux --enable-gtk-doc
   make
 }
 
 check() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make check
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make DESTDIR="$pkgdir" install
 }



More information about the arch-commits mailing list