updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / patchfork-git / PKGBUILD
blob9532c69ac80a9f11569fc7003a36208a6fd6ca8c
1 # $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
2 # Maintainer: Kevin Brubeck Unhammer <unhammer@fsfe.org>
3 pkgname=patchfork-git
4 pkgver=20111122
5 pkgrel=1 
6 pkgdesc="A web client for MPD written in PHP and Ajax (pitchfork fork)"
7 url="http://git.joshuawise.com/patchfork.git/"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=('php>=5.1.3' 'php-apache' 'php-pear')
11 makedepends=()
12 conflicts=('pitchfork')
13 replaces=('pitchfork')
14 backup=()
15 install=patchfork.install
16 source=(patchfork.conf)
17 md5sums=('9146ded69c6b1645933348fcfbb50fa0')
19 _gitroot="http://git.joshuawise.com/git/patchfork.git"
20 _gitname="patchfork"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
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"
40   #
41   # BUILD HERE
42   #
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