updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / scengine-core-git / PKGBUILD
blob8b3220312c0e80c684b38865cc98ba7566b058ef
1 # Maintainer: spider-mario <spidermario@free.fr>
2 pkgname=scengine-core-git
3 pkgver=20110126
4 pkgrel=3
5 pkgdesc="Free and open-source (GPL) 3D engine (core)"
6 arch=('i686' 'x86_64')
7 url="http://scengine.tuxfamily.org/"
8 license=('GPL')
9 depends=('scengine-utils-git')
10 makedepends=('git' 'autoconf' 'automake' 'libtool')
11 provides=('scengine-core')
12 conflicts=('scengine-core')
14 _gitroot="git://gitorious.org/scengine/core.git"
15 _gitname="core"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "$srcdir/$_gitname-build"
32   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
35   #
36   # BUILD
37   #
38   ./autogen.sh
39   ./configure --prefix=/usr
40   make
43 package() {
44   cd "$srcdir/$_gitname-build"
45   make DESTDIR="$pkgdir/" install