updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lite-git / PKGBUILD
blobe5f2a189f5ed1fa6048b62883da6a4aa20848547
1 # Contributor: Georgios N. Tsalikis <aliverius@tsalikis.net>
3 pkgname=lite-git
4 pkgver=20110116
5 pkgrel=1
6 pkgdesc="A toolkit engine for DirectFB"
7 arch=(i686 x86_64)
8 url="http://www.directfb.org"
9 license="LGPL2"
10 depends=('directfb')
11 makedepends=('git')
12 conficts="lite"
13 replaces="lite"
14 provides="lite"
15 source=()
16 md5sums=()
18 _gitroot="git://git.directfb.org/git/directfb/libs/LiTE.git"
19 _gitname="LiTE"
22 build() {
23   msg "Connecting to git.directfb.org GIT server...."
25   if [[ -d $startdir/src/$_gitname ]] ; then
26     cd $_gitname
27     git pull origin || return 1
28     msg "The local files are updated."
29   else
30     git clone $_gitroot || return 1
31   fi
33   msg "GIT checkout done"
35   # Remove old -build
36   rm -rf $startdir/src/$_gitname-build
38   cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
39   cd $startdir/src/$_gitname-build
41   msg "Starting make..."
43   ./autogen.sh --prefix=/usr
44   make 
45   make DESTDIR=${pkgdir} install