updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / bombermaaan-svn / PKGBUILD
blob7b30f3d497bcc82a2d0a07cb0240b5148ba61ec4
1 # Contributor: Micael Soder <zoulnix@gmail.com>
2 pkgname=bombermaaan-svn
3 pkgver=638
4 pkgrel=1
5 pkgdesc="A classic Bomberman game with multiplayer support."
6 arch=('i686' 'x86_64')
7 url="http://bombermaaan.sourceforge.net/"
8 license=('GPL')
9 depends=('sdl_mixer')
10 makedepends=('gcc' 'make' 'patch' 'pkgconfig' 'subversion')
11 provides=('bombermaaan')
12 conflicts=('bombermaaan')
13 install=bombermaaan.install
14 source=(http://downloads.sourceforge.net/bombermaaan/Bombermaaan_1.4.0.627_20081018_res.tar.gz \
15         bombermaaan-Makefiles.patch \
16         bombermaaan.desktop \
17         bombermaaan.png \
18         bombermaaan.svg)
19 md5sums=('6c12f92ba80788f5958f7d9b65c81307' '9e28cc9d8145ff578d7c23df27d44703' \
20          'c977c33d6974e6256b6e9668e6aedf3f' 'b60218af9f88738609f90e796853005d' \
21          'd44b4896cb8a9f65a47d9db697af82aa')
23 _svnmod="bombermaaan"
24 _svntrunk="https://opentibia.svn.sourceforge.net/svnroot/bombermaaan/trunk/src"
26 build() {
27   cd ${startdir}/src
28   mkdir -p ${startdir}/pkg/usr/share/{applications,pixmaps}
30   msg "Getting sources..."
31   svn co ${_svntrunk} ${_svnmod} -r ${pkgver}
32   cd ${_svnmod}
34   # Removing .svn files
35   find ${startdir}/src/ -type d -name ".svn" -exec rm -rf { } \;
37   # Applying Patch*
38   patch -Np1 -i ../${_svnmod}-Makefiles.patch || return 1
40   cp -r ${startdir}/src/Bombermaaan_1.4.0.627_20081018_res/* \
41         ${startdir}/src/${_svnmod}/
43   make || return 1
44   make prefix=/usr DESTDIR=${startdir}/pkg install || return 1
46   install -m644 ${startdir}/${_svnmod}.desktop ${startdir}/pkg/usr/share/applications/ || return 1
47   install -m644 ${startdir}/${_svnmod}.{png,svg} ${startdir}/pkg/usr/share/pixmaps/ || return 1