updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / ala-git / PKGBUILD
blob5d9f2fc973dc89ab4f5b3508353cd9c46394c5f2
1 # Maintainer: Matt
2 # based on Wingpanel PKGBUILD by Dan Serban
4 pkgname=ala-git
5 pkgver=20111209
6 pkgrel=1
7 pkgdesc="A space-saving top panel"
8 arch=(i686 x86_64)
9 url=https://github.com/quarterto/Ala
10 license=(GPL)
11 depends=(glib2 cairo libgee libindicator3 gtk3 libunique3)
12 makedepends=(git gettext intltool vala waf)
13 options=('!libtool' '!emptydirs')
14 #install=${pkgname}.install
16 _gitroot=https://github.com/quarterto/Ala
17 _gitname=Ala
19 build()
21   msg "Connecting to Github..."
22   if [ -d ${_gitname} ]; then
23     cd ${_gitname}
24     git pull
25     msg2 "The local files have been updated."
26     cd -
27   else
28     git clone ${_gitroot}
29   fi
30   msg2 "Git checkout done or server timeout"
31   [ -d ${_gitname}-build ] && rm -r ${_gitname}-build
32   cp -a ${_gitname} ${_gitname}-build
33   cd ${_gitname}-build
34   waf configure --prefix=/usr
35   waf build
36   DESTDIR="${pkgdir}" waf install