updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / adminer-git / PKGBUILD
bloba74bae2d666cf24220ca49add6a0151fc2462a87
1 # Maintainer: Sabart Otto - Seberm <seberm[at]gmail[dot].com
3 pkgname=adminer-git
4 pkgver=20110325
5 pkgrel=1
6 pkgdesc="Adminer (formerly phpMinAdmin) is a full-featured MySQL management tool written in PHP. GIT version."
7 url="http://www.adminer.org"
8 arch=('any')
9 license=('Apache License, Version 2.0')
10 install=
11 source=()
12 depends=('php' 'mysql')
13 makedepends=('git')
15 _gitname="adminer"
16 _gitroot="git://${_gitname}.git.sourceforge.net/gitroot/${_gitname}/${_gitname}"
19 build() {
20   cd $srcdir
21   msg "Connecting to GIT (${_gitroot}) ..."
23   if [ -d $_gitname ]; then
24     cd $_gitname && git pull origin
25     msg "The local files of ${_gitname} were updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
29   
30   msg "GIT checkout done or server timeout"
32   mkdir -p $pkgdir/srv/http/$_gitname
33   cp -R $srcdir/$_gitname/$_gitname/* $pkgdir/srv/http/$_gitname