1 # $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
2 # Maintainer: Kevin Brubeck Unhammer <unhammer@fsfe.org>
6 pkgdesc="A web client for MPD written in PHP and Ajax (pitchfork fork)"
7 url="http://git.joshuawise.com/patchfork.git/"
10 depends=('php>=5.1.3' 'php-apache' 'php-pear')
12 conflicts=('pitchfork')
13 replaces=('pitchfork')
15 install=patchfork.install
16 source=(patchfork.conf)
17 md5sums=('9146ded69c6b1645933348fcfbb50fa0')
19 _gitroot="http://git.joshuawise.com/git/patchfork.git"
24 msg "Connecting to GIT server...."
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_gitname-build"
37 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
44 mkdir -p $startdir/pkg/srv/http/patchfork
45 cd $startdir/pkg/srv/http/patchfork
46 cp -a $startdir/src/patchfork-build/* .
47 chown http $startdir/pkg/srv/http/patchfork/config
48 mkdir -p $startdir/pkg/etc/httpd/conf/extra
49 cp $startdir/src/patchfork.conf $startdir/pkg/etc/httpd/conf/extra