summaryrefslogtreecommitdiffstats
path: root/abs/core/mythtv/stable-0.24/mythweb/PKGBUILD
blob: ad0f7761a285b6322c93978095ac36424c11fc8b (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
35
36
37
38
39
40
41
42
43
44
45
pkgname=mythweb
pkgver=0.24
pkgrel=12
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=('mythweb.php.patch')
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}

}


md5sums=('45703fa3899c4ee84d1b087bfcc6654e'
         '51a502491a7fa444ec24516cd0669997')