# $Id: PKGBUILD 194953 2013-09-24 10:27:41Z heftig $ # Maintainer: Jan Alexander Steffens (heftig) # Contributor: György Balló pkgname=gupnp pkgver=0.20.6 pkgrel=1 pkgdesc="An object-oriented UPNP framework" arch=(i686 x86_64) url="http://gupnp.org/" license=(LGPL) depends=(gssdp util-linux) makedepends=(gobject-introspection gtk-doc vala) optdepends=('python2: gupnp-binding-tool') options=('!libtool') source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz) sha256sums=('1b4ed7de9fdf2da2a5610a0101271f1661706e6481737d7a2ac0f318b5b2dbaa') build() { cd $pkgname-$pkgver sed -i '1s|^#!.*python$|&2|' tools/gupnp-binding-tool ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --disable-static --with-context-manager=linux make } check() { cd $pkgname-$pkgver make check } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install }