Date: Wednesday, April 5, 2017 @ 18:40:50 Author: heftig Revision: 292191
0.10.5-2 Modified: gupnp-dlna/trunk/PKGBUILD ----------+ PKGBUILD | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-04-05 18:40:33 UTC (rev 292190) +++ PKGBUILD 2017-04-05 18:40:50 UTC (rev 292191) @@ -4,29 +4,41 @@ pkgname=gupnp-dlna pkgver=0.10.5 -pkgrel=1 +pkgrel=2 pkgdesc="Library to ease DLNA-related bits for applications using gupnp" arch=(i686 x86_64) -url="http://gupnp.org/" +url="https://wiki.gnome.org/Projects/GUPnP" license=(LGPL) depends=(gst-plugins-base-libs) -makedepends=(gobject-introspection gtk-doc vala) -source=(http://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz) -sha256sums=('123e368227c11d5c17fc1aa76cbdaffa345355eb51d172cd39fc74a5b468ff6a') +makedepends=(gobject-introspection gtk-doc vala git autoconf-archive) +_commit=d8c2a40767e47fe8427e019cad5359092a8fa662 # tags/gupnp-dlna-0.10.5^0 +source=("git+https://git.gnome.org/browse/gupnp-dlna#commit=$_commit") +sha256sums=('SKIP') +pkgver() { + cd $pkgname + git describe --tags | sed 's/^gupnp-dlna-//;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 --disable-Werror --enable-gtk-doc + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } check() { - cd $pkgname-$pkgver + cd $pkgname make check } package() { - cd $pkgname-$pkgver + cd $pkgname make -j1 DESTDIR="$pkgdir" install }
