updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / crimesquad-svn / PKGBUILD
blob8683aa3b08ca5169b922a27488adfc7b1930a628
1 # Contributor: Tarinaky <tarinaky@gmail.com>
2 pkgname=crimesquad-svn
3 pkgver=418
4 pkgrel=1
5 pkgdesc="A satirical console-based political role-playing/strategy game in which you recruit a team of Elite Liberal radicals and try to save the United States from a descent into Arch-Conservatism. Gameplay based loosely on the classic 1983 RPG Oubliette."
6 arch=(i686)
7 url="http://sourceforge.net/projects/lcsgame/"
8 license=('GPL')
9 groups=()
10 depends=()
11 makedepends=('subversion')
12 provides=()
13 conflicts=()
14 replaces=()
15 backup=()
16 options=()
17 install=
18 source=()
19 noextract=()
20 md5sums=() #generate with 'makepkg -g'
22 _svntrunk=https://lcsgame.svn.sourceforge.net/svnroot/lcsgame/trunk/
23 _svnmod=trunk
25 build() {
26   cd "$srcdir"
28   if [ -d $_svnmod/.svn ]; then
29     (cd $_svnmod && svn up -r $pkgver)
30   else
31     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
32   fi
34   msg "SVN checkout done or server timeout"
35   msg "Starting make..."
37   rm -rf "$srcdir/$_svnmod-build"
38   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
39   cd "$srcdir/$_svnmod-build"
41   #
42   # BUILD
43   #
44   #./autogen.sh
45   ./bootstrap
46   ./configure --prefix=/usr
47   make || return 1
48   make DESTDIR="$pkgdir/" install