1 # Maintainer: Roger Duran <rogerduran at gmail.com>
3 pkgdesc="Construder is a 3D game that takes place in a completely modifiable world that is built from small cubes, inspired by Minecraft/Infiniminer."
7 url="http://ue.o---o.eu/"
9 depends=(perl perl-alien-sdl perl-opengl perl-common-sense perl-json perl-anyevent perl-compress-lzf perl-sdl perl-list-opengl perl-object-event perl-file-sharedir-install perl-file-sharedir-par perl-ev)
10 makedepends=('git' 'perl-module-install')
12 _gitroot="http://github.com/elmex/Construder.git"
17 msg "Connecting to GIT server...."
19 if [ -d $_gitname ] ; then
20 cd $_gitname && git pull origin
21 msg "The local files are updated."
23 git clone $_gitroot $_gitname
26 msg "GIT checkout done or server timeout"
27 msg "Starting make..."
29 rm -rf "$srcdir/$_gitname-build"
30 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31 cd "$srcdir/$_gitname-build"
33 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
38 cd "$srcdir/$_gitname-build"
39 make DESTDIR="$pkgdir/" install