updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / pacman-glib-git / PKGBUILD
blob2263201e97e08378e4c524206cf3976da6ea869d
1 # Maintainer: PirateJonno <j@skurvy.no-ip.org>
3 _pkgname=pacman-glib
4 pkgname="$_pkgname-git"
5 pkgver=20100620
6 pkgrel=1
7 pkgdesc='GLib library for Arch Linux package management'
8 arch=('i686' 'x86_64')
9 url="http://github.com/PirateJonno/pacman-glib"
10 license=('GPL')
11 depends=('pacman>=3.4.0' 'pacman<3.5.0' 'glib2')
12 makedepends=('git' 'gnome-common' 'gtk-doc' 'intltool')
13 provides=("$_pkgname=3.4.0")
14 conflicts=("$_pkgname")
16 _gitroot='git://github.com/PirateJonno/pacman-glib.git'
17 _gitname='pacman-glib'
19 build() {
20         cd "$srcdir"
21         msg "Connecting to GIT server...."
22         
23         if [ -d "$_gitname" ]; then
24                 cd "$_gitname" && git pull origin
25                 msg "The local files are updated."
26         else
27                 git clone "$_gitroot" "$_gitname"
28         fi
29         
30         msg "GIT checkout done or server timeout"
31         msg "Starting make..."
32         
33         [ -d "$srcdir/$_gitname-build" ] && rm -rf "$srcdir/$_gitname-build"
34         git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35         cd "$srcdir/$_gitname-build"
36         
37         ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var || return 1
38         make -s || return 1
39         make -s DESTDIR="$pkgdir" install