summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/mythtv/stable/mythweb/PKGBUILD
blob: 9b54d6d95e1ead3cc85410d3e531b26dffca57f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
pkgname=mythweb
pkgver=0.21
pkgrel=7
pkgdesc="Web interface for MythTV's backend"
arch=('i686' 'x86_64')
url="http://www.mythtv.org"
license=('GPL')
depends=("mythtv>=${pkgver}" 'lighttpd' 'php')
install=mythweb.install
source=("ftp://ftp.knoppmyth.net/R6/sources/mythplugins-$pkgver-fixes.tar.bz2")
md5sums=('af20a78ac66719feddf9a39f1a799ded')
groups=('mythtv-extras')
DOCROOT=srv/http/mythweb

build() {
   mkdir -p $startdir/pkg/$DOCROOT/{image_cache,php_sessions}
#apply gallery patches here
#   cd $startdir/src/mythplugins-$pkgver/$pkgname/
#   patch -p0 < $startdir/patch/mythweb_gallery_updated1.diff
#   patch -p2 < $startdir/patch/2923-mythweb-gallery-English_GB_lang.diff
#   tar -zxvf $startdir/patch/icons.tar.gz
###

   cp -r $startdir/src/mythplugins-$pkgver/$pkgname/* $startdir/pkg/$DOCROOT
#   cp $startdir/src/mythplugins-$pkgver/$pkgname/data/.htaccess $startdir/pkg/$DOCROOT
   rm $startdir/pkg/srv/$DOCROOT/README
   chown -R http:users $startdir/pkg/$DOCROOT
   chmod g+rw $startdir/pkg/$DOCROOT/{image_cache,php_sessions,data}



}