pkgname=mythweb pkgver=0.25 pkgrel=3 commit_hash=`cat ../git_src/git_hash_web` pkgdesc="Web interface for MythTV's backend, $commit_hash" url="http://www.mythtv.org" license="GPL" arch=('i686' 'x86_64') depends=('mythtv>=0.25' 'lighttpd' 'php' 'local-website') groups=('mythtv-extras') patches=() source=(`echo ${patches[@]:0}`) DOCROOT=/data/srv/httpd/htdocs/mythweb build() { if [ -e ${srcdir}/mythweb ] then rm -rf ${srcdir}/mythweb fi cd ${startdir} msg "copy in myth web src" cp -rp ../git_src/mythweb $srcdir cd ${srcdir}/${pkgbase} msg "The local files are updated." cd $startdir/src/mythweb echo "--------------------------applying patches----------------------------------------------------" for i in `echo ${patches[@]:0} ` do echo applying $i echo "-----------------------------" patch -Np0 -i ${srcdir}/$i || return 1 done echo "--------------------------done applying patches-----------------------------------------------" [ "$CARCH" = "i686" ] && ARCH="i686" [ "$CARCH" = "x86_64" ] && ARCH="x86-64" mkdir -p $startdir/pkg/$DOCROOT/{image_cache,php_sessions,data} rsync -arp --exclude .git --delete-excluded $startdir/src/mythweb/* $startdir/pkg/$DOCROOT rm $startdir/pkg/$DOCROOT/README chown -R http:http $startdir/pkg/$DOCROOT chmod g+rw $pkgdir/$DOCROOT/{image_cache,php_sessions,data} # mythweb modules_path fix for 0.24 # http://code.mythtv.org/trac/ticket/9255 cd ${pkgdir}/${DOCROOT} ln -s modules modules_path } md5sums=('45703fa3899c4ee84d1b087bfcc6654e')