updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / dimension-git / PKGBUILD
blob7f1c560cb97b621da5a42e9b1feacb1c260b6357
1 # Maintainer: Tavian Barnes <tavianator@gmail.com>
3 pkgname="dimension-git"
4 pkgver=20110616
5 pkgrel=1
6 pkgdesc="A photo-realistic 3-D renderer"
7 arch=('i686' 'x86_64')
8 url="http://www.tavianator.com/dimension/"
9 license=('GPL3' 'LGPL3')
10 depends=('libpng' 'libgl' 'python')
11 makedepends=('cython' 'pkgconfig')
12 provides=('dimension')
13 conflicts=('dimension')
14 replaces=()
15 options=('!libtool')
17 _gitroot="git://gitorious.org/dimension/dimension.git"
18 _gitname="dimension"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   ./autogen.sh
39   ./configure --prefix=/usr
40   make
43 package() {
44   cd "$srcdir/$_gitname-build"
45   make DESTDIR="$pkgdir/" install