updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / vadorz-svn / PKGBUILD
blob7ca74f2293d17e93d327aedb0903bc242aacc48c
1 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
3 pkgname=vadorz-svn
4 pkgver=33
5 pkgrel=1
6 pkgdesc="An addicting ncurses space-invaders game."
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/vadorz"
9 license=('BSD')
10 depends=('ncurses')
11 source=()
12 md5sums=()
14 _svntrunk=http://vadorz.googlecode.com/svn/trunk
15 _svnmod=vadorz
17 build() {
18         cd $srcdir
20         if [ -d $_svnmod/.svn ]; then
21                 (cd $_svnmod && svn up -r $pkgver)
22         else
23                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
24         fi
26         msg "SVN checkout done or server timeout"
27         msg "Starting make..."
29         rm -rf $srcdir/$_svnmod-build
30         cp -r $srcdir/$_svnmod $srcdir/$_svnmod-build
31         cd $srcdir/$_svnmod-build
33         gcc vadorz.c -O2 -lncurses -o vadorz
34         mkdir -p $pkgdir/usr/bin/
35         install -m755 vadorz $pkgdir/usr/bin/