# Maintainer: jjacky
_pkgname=kalu
pkgname=$_pkgname-git
pkgver=20130425
pkgrel=1
pkgdesc="Upgrade notifier w/ AUR support, watched (AUR) packages, news [GIT]"
arch=('i686' 'x86_64')
url="http://jjacky.com/$_pkgname"
license=('GPL3+')
depends=('dbus' 'polkit' 'gtk3' 'pacman>=4.1' 'pacman<4.2' 'curl' 'libnotify'
'notification-daemon')
makedepends=('perl' 'groff' 'git' 'autoconf')
provides=($_pkgname)
conflicts=($_pkgname)

_gitroot=git://github.com/jjk-jacky/kalu.git
_gitname=next
_gitbranch=next

build() {
cd "$srcdir"
msg "Connecting to GIT server...."

if [[ -d "$_gitname" ]]; then
cd "$_gitname" && git pull origin
msg "The local files are updated."
else
git clone -b "$_gitbranch" "$_gitroot" "$_gitname"
fi

msg "GIT checkout done or server timeout"
msg "Starting build..."

rm -rf "$srcdir/$_gitname-build"
git clone -b "$_gitbranch" "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
./autogen.sh
./configure --prefix=/usr --enable-git-version
make
}

package() {
cd "$srcdir/$_gitname-build"
make DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et: