summaryrefslogtreecommitdiff
path: root/community/mythplugins/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/mythplugins/PKGBUILD')
-rw-r--r--community/mythplugins/PKGBUILD18
1 files changed, 11 insertions, 7 deletions
diff --git a/community/mythplugins/PKGBUILD b/community/mythplugins/PKGBUILD
index af1a3aabb..984be7fad 100644
--- a/community/mythplugins/PKGBUILD
+++ b/community/mythplugins/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 69346 2012-04-14 12:26:30Z jconder $
+# $Id: PKGBUILD 70479 2012-05-09 10:48:34Z jconder $
# Maintainer: Jonathan Conder <jonno.conder@gmail.com>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
@@ -14,7 +14,7 @@ pkgname=('mythplugins-mytharchive'
'mythplugins-mythweb'
'mythplugins-mythzoneminder')
pkgver=0.25
-pkgrel=2
+pkgrel=3
epoch=1
arch=('i686' 'x86_64' 'mips64el')
url="http://www.mythtv.org"
@@ -25,14 +25,17 @@ makedepends=('cdrkit' 'dvdauthor' 'dvd+rw-tools' 'ffmpeg' 'flac' 'libexif'
'perl-soap-lite' 'perl-xml-sax' 'perl-xml-simple' 'perl-xml-xpath'
'python2-oauth' 'python-imaging' 'python-pycurl' 'taglib' 'zlib')
source=("ftp://ftp.osuosl.org/pub/mythtv/$pkgbase-$pkgver.tar.bz2"
+ 'php54.patch'
'mtd.rc')
md5sums=('b3f2768372a38e92ca94841519daa05e'
+ '7a114c1b5a84ab5ee190e63cc9514086'
'476c12ba074794ad7f4ae092bdf949d6')
build() {
cd "$srcdir/$pkgbase-$pkgver"
find . -name '*.py' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
+ patch -d 'mythweb' -Np0 -i "$srcdir/php54.patch"
sed -re 's@/usr/local.*/usr/share@/usr/share@' -i 'mythweb/mythweb.php'
sed -re 's@cstdio@cstdio>\n#include <unistd.h@' -i 'mythzoneminder/mythzmserver/zmserver.cpp'
@@ -115,18 +118,19 @@ package_mythplugins-mythweb() {
depends=('mythtv')
optdepends=('lighttpd'
'php-apache')
+ install='mythplugins-mythweb.install'
- mkdir -p "$pkgdir/srv/http/mythweb"/{image_cache,php_sessions}
- cp -R "$srcdir/$pkgbase-$pkgver/mythweb"/* "$pkgdir/srv/http/mythweb"
- chown -R http:http "$pkgdir/srv/http/mythweb"
- chmod g+rw "$pkgdir/srv/http/mythweb"/{image_cache,php_sessions}
+ mkdir -p "$pkgdir/var/lib/mythtv/mythweb"/{image_cache,php_sessions}
+ cp -R "$srcdir/$pkgbase-$pkgver/mythweb"/* "$pkgdir/var/lib/mythtv/mythweb"
+ chown -R http:http "$pkgdir/var/lib/mythtv/mythweb"
+ chmod g+rw "$pkgdir/var/lib/mythtv/mythweb"/{image_cache,php_sessions}
}
package_mythplugins-mythzoneminder() {
pkgdesc="View CCTV footage from zoneminder in MythTV"
depends=('mythtv')
-
install='mythplugins-mythzoneminder.install'
+
cd "$srcdir/$pkgbase-$pkgver/mythzoneminder"
make INSTALL_ROOT="$pkgdir" install
}