updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / gameandwatch-svn / PKGBUILD
blobbb0ce1b650f7a37bf32befd48b1721b01008b580
1 # Contributor: rabyte <rabyte__gmail>
3 pkgname=gameandwatch-svn
4 pkgver=67
5 pkgrel=1
6 pkgdesc="A generic engine for simulation of Game & Watch games"
7 arch=('i686')
8 url="http://www.rangelreale.com/gamewatch.php"
9 license=('GPL2')
10 depends=('sdl_gfx' 'sdl_ttf' 'sdl_image' 'sdl_mixer' 'zziplib' 'boost>=1.33.1')
11 makedepends=('svn' 'autoconf' 'automake')
12 source=()
13 md5sums=()
15 _svntrunk=http://gameandwatch.svn.sourceforge.net/svnroot/gameandwatch/gamewatch/trunk
16 _svnmod=gameandwatch
18 build() {
19   cd $srcdir
21   if [ -d $_svnmod/.svn ]; then
22     cd $_svnmod
23     svn up -r $pkgver
24     cd ..
25   else
26     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27   fi
29   msg "SVN checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf $_svnmod-build
33   cp -rf $_svnmod/ $_svnmod-build/
34   cd $_svnmod-build
36   ./autogen.sh
37   ./configure --prefix=/usr
38   make || return 1
39   make DESTDIR=$pkgdir install