updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / xmltvproducer-svn / PKGBUILD
blob4ac9b5c10f5c56b6aecdf368e1c1368a93fedbcd
1 # Contributor: Jozef Riha <jose1711 at gmail dot com>
3 pkgname=xmltvproducer-svn
4 pkgver=36
5 pkgrel=1
6 pkgdesc="a php engine to grab tv/radio listings from websites and produce XMLTV output"
7 arch=('i686' 'x86_64')
8 url="http://xmltvproducer.sourceforge.net/"
9 license=('LGPL')
10 depends=('php')
11 install=('xmltvproducer.install')
12 source=()
13 md5sums=()
15 _svntrunk="https://xmltvproducer.svn.sourceforge.net/svnroot/xmltvproducer/trunk/xmltvproducer"
16 _svnmod="xmltvproducer"
18 build() {
20         mkdir -p ${pkgdir}/usr/{share/xmltvproducer/,bin}
21         cd $srcdir
22         # get the sources
23         msg "Connecting to $_svntrunk ..."
24         if [ -d $_svnmod/.svn ]; then
25                 (cd $_svnmod && svn up) || return 1
26         else
27                 svn co $_svntrunk $_svnmod || return 1
28         fi
29         msg "SVN checkout done or server timeout"
31         cd $_svnmod
33         cd $srcdir/xmltvproducer
34         /bin/tar cf - --exclude=.svn * | ( cd ../../pkg/usr/share/xmltvproducer/; tar xfp - )
35         echo '#!/bin/sh
36 cd /usr/share/xmltvproducer/
37 /usr/bin/php -f ./build.php' > ${pkgdir}/usr/bin/grabxmltv.sh
38         chmod 755 ${pkgdir}/usr/bin/grabxmltv.sh