updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xfce4-vala-git / PKGBUILD
blobea4b7edfa1a78a88fb9a736ee93622147ffebd17
1 pkgname=xfce4-vala-git
2 pkgver=20100303
3 pkgrel=1
4 pkgdesc="Vala bindings for the Xfce framework"
5 arch=(i686 x86_64)
6 license=('GPL2')
7 url="http://wiki.xfce.org/vala-bindings"
8 groups=('xfce4-goodies-git')
9 depends=('vala>=0.7.5')
10 makedepends=('xfce4-dev-tools' 'pkgconfig' 'git')
11 #provides=('xfce4-vala')
12 replaces=('xfce4-vala')
13 conflicts=('xfce4-vala')
14 options=('!libtool')
15 install=
16 source=()
17 md5sums=()
19 _gitname="xfce4-vala"
20 _gitroot=git://git.xfce.org/bindings/xfce4-vala
22 build() {
23     cd $startdir/src/
24         msg "Getting sources..."
25         
26         if [[ -d $_gitname ]] ; then
27                 cd $_gitname && git pull origin || return 1
28                 msg "The local files are updated." &&   cd ../
29         else
30                 git clone $_gitroot $_gitname|| return 1
31         fi
32   
33         [ -d $_gitname-build ] && rm -r $_gitname-build 
34         cp $_gitname $_gitname-build -r || return 1
35         cd $_gitname-build || return 1
36         
37     msg "Starting build..."
39   ./autogen.sh --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
40      --localstatedir=/var
41   make || return 1
42   make DESTDIR=${pkgdir} install || return 1
44