1 # Maintainer: PirateJonno <j@skurvy.no-ip.org>
4 pkgname="$_pkgname-git"
7 pkgdesc='GLib library for Arch Linux package management'
9 url="http://github.com/PirateJonno/pacman-glib"
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'
21 msg "Connecting to GIT server...."
23 if [ -d "$_gitname" ]; then
24 cd "$_gitname" && git pull origin
25 msg "The local files are updated."
27 git clone "$_gitroot" "$_gitname"
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 [ -d "$srcdir/$_gitname-build" ] && rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
37 ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var || return 1
39 make -s DESTDIR="$pkgdir" install