desktop/support-pkg-libhupnp-svn/PKGBUILD
2013-12-17 18:41:12 +00:00

46 lines
1.1 KiB
Bash

# Maintainer (i686): Phil Miller <philm@chakra-project[dog]org>
# Maintainer (x86_64): Manuel Tortosa <manutortosa@chakra-project@org>
pkgname=libhupnp-svn
pkgver=93
pkgrel=1
pkgdesc="Herqq UPnP (HUPnP) is a software library for building UPnP devices"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/hupnp/"
license=('GPL')
depends=('qt')
makedepends=('subversion')
_svntrunk=https://hupnp.svn.sourceforge.net/svnroot/hupnp/trunk
_svnmod=hupnp
build() {
cd $srcdir
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up)
else
svn co $_svntrunk $_svnmod
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build/herqq
qmake PREFIX=/usr
make
install -d $pkgdir/usr/{lib,include}
cp -r $srcdir/$_svnmod-build/herqq/hupnp/bin/libHUpnp.* $pkgdir/usr/lib/
cp -r $srcdir/$_svnmod-build/herqq/hupnp/bin/libQtSolutions_SOAP-2.7.* $pkgdir/usr/lib/
cp -r $srcdir/$_svnmod-build/herqq/hupnp/include/HUpnpCore/ $pkgdir/usr/include/HUpnpCore/
find $pkgdir/usr -type f -exec chmod 0644 {} ';'
rm -r $srcdir/$_svnmod-build/
}