diff options
author | James Meyer <james.meyer@operamail.com> | 2012-04-15 18:13:12 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-04-15 18:13:12 (GMT) |
commit | 294a757e2774990e7a788d6437089e730118b5d1 (patch) | |
tree | dff325392b5057cdded67adf81c4c2d1420f520a /abs/core/mythtv/stable-0.25/mythweb/PKGBUILD | |
parent | fc98dbe17ad2e565b67a6c5ec715ab2bcca161f0 (diff) | |
download | linhes_pkgbuild-294a757e2774990e7a788d6437089e730118b5d1.zip linhes_pkgbuild-294a757e2774990e7a788d6437089e730118b5d1.tar.gz linhes_pkgbuild-294a757e2774990e7a788d6437089e730118b5d1.tar.bz2 |
mythtv .25: First checkin, still needs a bit of cleanup.
This commit introduces the dir git_src which is used as a common dir to build plugins/mythweb/mythtv.
To update the mythtv pkg, first run git_src/checkout_mythtv.sh then switch to the mythtv package dir and build the package as normal.
Same applies to mythplugins.
I plan to introduce another script that will build it all in one step.
Also this checkin doesn't handle the menu updates. Those will be corrected at a later date.
Diffstat (limited to 'abs/core/mythtv/stable-0.25/mythweb/PKGBUILD')
-rw-r--r-- | abs/core/mythtv/stable-0.25/mythweb/PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/abs/core/mythtv/stable-0.25/mythweb/PKGBUILD b/abs/core/mythtv/stable-0.25/mythweb/PKGBUILD new file mode 100644 index 0000000..cab8fbd --- /dev/null +++ b/abs/core/mythtv/stable-0.25/mythweb/PKGBUILD @@ -0,0 +1,46 @@ +pkgname=mythweb +pkgver=0.24 +pkgrel=16 +pkgdesc="Web interface for MythTV's backend" +url="http://www.mythtv.org" +license="GPL" +arch=('i686' 'x86_64') + +depends=('mythtv>=0.24' 'lighttpd' 'php' 'local-website') +groups=('mythtv-extras') + +patches=() +source=('ftp://ftp.knoppmyth.net/R6/sources/mythweb-0.24-fixes.tar.bz2' `echo ${patches[@]:0}`) + +DOCROOT=/data/srv/httpd/htdocs/mythweb +_gitroot="https://github.com/mythtv/mythweb.git" +_gitname="${pkgname}" +build() { + + cd $startdir/src/mythweb + git pull + + 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') |