updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pluf-aa-git / PKGBUILD
blob71f673367e47a6230a3d9b205e69bccf0db3fff0
1 # Contributor: Jakub Vitak <mainiak@gmail.com>
2 pkgname=pluf-aa-git
3 pkgver=20091101
4 pkgrel=1
5 pkgdesc="AutoAdmin pluf app"
6 arch=('i686' 'x86_64')
7 url="http://code.pluf.org/p/admin/"
8 license=('LGPL')
9 groups=()
10 depends=()
11 makedepends=('git')
12 provides=('pluf-aa')
13 conflicts=()
14 replaces=()
15 backup=()
16 options=(!purge)
17 install=
18 _aur_url="http://aur.archlinux.org/packages/$pkgname/$pkgname"
19 source=("${_aur_url}/backup+history.patch" "${_aur_url}/backup.patch")
20 noextract=()
21 md5sums=('353310434b4aa5bc1a477a8dd131d824'
22          '731543c32e7ad6d3faec166ea08be0bd')
24 _gitroot="git://pluf.indefero.net/pluf/admin.git"
25 _gitname="pluf-aa"
27 build() {
28   cd "$srcdir"
29   msg "Connecting to GIT server...."
31   if [ -d $_gitname ] ; then
32     cd $_gitname && git pull origin
33     msg "The local files are updated."
34   else
35     git clone $_gitroot $_gitname
36   fi
38   msg "GIT checkout done or server timeout"
39   msg "Starting make..."
41   _dest="$pkgdir/srv/http"
43   rm -rf $pkgdir
44   mkdir -p $_dest
45   cp -r $srcdir/$_gitname $_dest
46   rm -rf $_dest/$_gitname/.git
47   
48   cd $_dest/$_gitname
49   patch -p1 -i $srcdir/backup+history.patch
50   patch -p1 -i $srcdir/backup.patch
51