1 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
6 pkgdesc="A 2D dungeon exploration game written in Python."
8 url="http://github.com/axedcode/crawlr"
10 depends=('python-pygame')
13 _gitroot="git://github.com/axedcode/crawlr.git"
18 msg "Connecting to GIT server...."
20 if [ -d $_gitname ] ; then
21 cd $_gitname && git pull origin
22 msg "The local files are updated."
27 msg "GIT checkout done or server timeout"
28 msg "Starting make..."
30 rm -rf ${srcdir}/$_gitname-build
31 git clone ${srcdir}/$_gitname ${srcdir}/$_gitname-build
32 cd ${srcdir}/$_gitname-build
34 install -d ${pkgdir}/usr/{bin,share/crawlr} || return 1
35 mv * ${pkgdir}/usr/share/crawlr || return 1
36 echo -e "#!/bin/sh\n\ncd /usr/share/crawlr\n./play.py" > crawlr
37 install -m755 crawlr ${pkgdir}/usr/bin/crawlr || return 1