updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / directfbgl-git / PKGBUILD
blob0034ec056c6adb7dfb0755f81cd6258a37606d36
1 # Contributor: Georgios N. Tsalikis <aliverius@tsalikis.net>
3 pkgname=directfbgl-git
4 pkgver=20081018
5 pkgrel=1
6 pkgdesc="OpenGL extension to DirectFB"
7 arch=(i686 x86_64)
8 url="http://www.directfb.org"
9 license="LGPL2"
10 depends=('directfb>=1.3.0')
11 makedepends=('git')
12 provides=('directfbgl')
13 conflicts=('directfbgl')
14 source=()
15 md5sums=()
17 _gitroot="git://git.directfb.org/git/directfb/core/DirectFBGL.git"
18 _gitname="DirectFBGL"
20 build() {
21   msg "Connecting to git.directfb.org GIT server...."
23   if [[ -d $startdir/src/$_gitname ]] ; then
24     cd $_gitname
25     git pull origin || return 1
26     msg "The local files are updated."
27   else
28     git clone $_gitroot || return 1
29   fi
31   msg "GIT checkout done"
33   # Remove old -build
34   rm -rf $startdir/src/$_gitname-build
36   cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
37   cd $startdir/src/$_gitname-build
39   msg "Starting make..."
41   ./autogen.sh --prefix=/usr
42   make || return 1
43   make prefix=$startdir/pkg/usr install