updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / luma-git / PKGBUILD
blobc59eb1b18e15829563378699f6bbfc1e1e950c3c
1 # Maintainer: Christian Hesse <mail@eworm.de>
3 pkgname=luma-git
4 pkgver=20110923
5 pkgrel=1
6 pkgdesc="A feature-full LDAP browser/editor using PyQT -- git checkout"
7 conflicts=('luma' 'luma-svn')
8 provides=luma
9 url="http://luma.sourceforge.net/"
10 license=("GPL")
11 depends=('python2-ldap' 'pyqt')
12 makedepends=('git')
13 arch=('i686' 'x86_64')
14 _gitroot="git://luma.git.sourceforge.net/gitroot/luma/luma"
15 _gitname="luma"
17 build() {
18   cd ${srcdir}
19   msg "Connecting to the GIT server...."
20   
21   if [[ -d ${srcdir}/${_gitname} ]] ; then
22     cd ${_gitname}
23     git pull origin
24     msg "The local files are updated."
25   else
26     git clone ${_gitroot}
27   fi
28   
29   msg "GIT checkout done"
30   msg "Starting make..."
32   rm -rf "${srcdir}/${_gitname}-build"
33   git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
34   cd "${srcdir}/${_gitname}-build"
36   cd ${srcdir}/luma/
37   mkdir ${pkgdir}/usr
38   python2 setup.py install --prefix=${pkgdir}/usr
40 md5sums=()