updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / xdg-su-git / PKGBUILD
blob7c3c3450a28681faaf66c1523910376755fa39c3
1 # Maintainer: Atilla ÖNTAŞ <tarakbumba@gmail.com>
2 #Contributor: Mitchell Nemitz <mitchell.nemitz@gmail.com>
3 pkgname=xdg-su-git
4 pkgver=20111210
5 pkgrel=1
6 pkgdesc="Run a program as root with a graphical interface"
7 arch=('any')
8 url="https://github.com/tarakbumba/xdg-su"
9 license=('mit')
10 makedepends=('links' 'xmlto' 'git')
11 provides=('xdg-su')
12 conflicts=('xdg-su')
13 options=()
14 install=
15 source=()
17 _gitroot="https://github.com/tarakbumba/xdg-su/"
18 _gitname="xdg-su"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34 cd "$srcdir/$_gitname"
35 ./configure --prefix=/usr
36 make
39 package() {
40     cd "$srcdir/$_gitname"
41     make DESTDIR="${pkgdir}" install