updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / remood-svn / PKGBUILD
blobcd3af3523f9e6d13e8e827322fd0044ee58e0970
1 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
3 pkgname=remood-svn
4 pkgver=679
5 pkgrel=1
6 pkgdesc="An advanced Doom game engine based on Doom Legacy"
7 arch=('i686' 'x86_64')
8 url="http://remood.sourceforge.net/"
9 license=('GPL')
10 depends=('bash' 'sdl')
11 makedepends=('subversion' 'make')
12 provides=('remood')
13 conflicts=('remood')
14 source=(remood.sh)
15 md5sums=('693443213b20e33773513d7d41e4c147')
17 _svntrunk="http://remood.svn.sourceforge.net/svnroot/remood/trunk"
18 _svnmod="remood"
20 build() {
21   msg "Connecting to SVN server..."
23   [ -d $_svnmod ] && {
24         cd $_svnmod
25         svn up -r $pkgver
26         cd ..
28         msg "Local files have been updated."
29   } || {
30         svn co $_svntrunk $_svnmod -r $pkgver --config-dir ./
31   }
33   msg "SVN checkout done or server timeout"
35   rm -rf $_svnmod-build
36   cp -rf $_svnmod/ $_svnmod-build/
37   cd $_svnmod-build
39   msg "Starting make..."
41   make CC_MODECFLAGS="${CFLAGS} -DNDEBUG" || return 1
43   install -Dm755 bin/remood "$pkgdir"/usr/bin/remood.bin
44   mkdir -p "$pkgdir"/usr/share/{applications,pixmaps,remood}
45   install -m644 bin/remood.wad "$pkgdir"/usr/share/remood/
46   install -m644 remood.xpm "$pkgdir"/usr/share/pixmaps/
47   install -m644 remood.desktop "$pkgdir"/usr/share/applications/
49   install -m755 ../remood.sh "$pkgdir"/usr/bin/remood
52 # vim:set ts=2 sw=2 et: