updated on Wed Jan 25 00:20:47 UTC 2012
[aur-mirror.git] / crawlr-git / PKGBUILD
blob2b7d4f6650eba6bcd834d028eb1e17b60b984fc1
1 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
3 pkgname=crawlr-git
4 pkgver=20091124
5 pkgrel=1
6 pkgdesc="A 2D dungeon exploration game written in Python."
7 arch=('i686' 'x86_64')
8 url="http://github.com/axedcode/crawlr"
9 license=('GPL3')
10 depends=('python-pygame')
11 makedepends=('git')
13 _gitroot="git://github.com/axedcode/crawlr.git"
14 _gitname="crawlr"
16 build() {
17   cd ${srcdir}
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot
25   fi
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