updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dangerdeep-svn / PKGBUILD
blob39474f72fe737237a9aeabf54ffdd1b253e01872
1 pkgname=dangerdeep-svn
2 pkgver=3341
3 pkgrel=1
4 pkgdesc="submarine simulator,svn version"
5 arch=(i686 x86_64)
6 url="http://dangerdeep.sourceforge.net"
7 license=('GPL')
8 depends=(fftw sdl_image sdl_mixer mesa)
9 makedepends=(scons)
10 source=('dangerdeep.png' 'dangerdeep.desktop')
11 md5sums=('969e717f644d67083f482666b50a06d6'
12          'baead4d3ea86004547269063f0f973d5')
15 _svntrunk=https://dangerdeep.svn.sourceforge.net/svnroot/dangerdeep/trunk/dangerdeep
16 _svnmod=dangerdeep
18 build() {
19   cd ${srcdir}
21   msg "Connecting to SVN server...."
23   if [ -d ${_svnmod}/.svn ]; then
24   (cd ${_svnmod} && svn up -r $pkgver)
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   svn export ${_svnmod} ${_svnmod}-build
33   cd ${_svnmod}-build
35   mkdir -p $pkgdir/usr/share/dangerdeep
36   scons installbindir=$pkgdir/usr/bin datadir=/usr/share/dangerdeep install || return 1
37   
38   cp -R $srcdir/dangerdeep/data/* $pkgdir/usr/share/dangerdeep
39   
40   install -Dm644 ../dangerdeep.png "$pkgdir"/usr/share/pixmaps/dangerdeep.png
41   install -Dm644 ../dangerdeep.desktop "$pkgdir"/usr/share/applications/dangerdeep.desktop