updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / bombermaaan / PKGBUILD
blobaa4a80e843ace88c3f2280184195f6da6078ca8e
1 # Contributor: Micael Soder <zoulnix@gmail.com>
2 pkgname=bombermaaan
3 pkgver=1.4.0
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')
11 install=${pkgname}.install
12 source=(http://downloads.sourceforge.net/${pkgname}/Bombermaaan_${pkgver}.627_20081018_src.tar.gz \
13         http://downloads.sourceforge.net/${pkgname}/Bombermaaan_${pkgver}.627_20081018_res.tar.gz \
14         ${pkgname}-Makefiles.patch \
15         ${pkgname}.desktop \
16         ${pkgname}.png \
17         ${pkgname}.svg)
18 md5sums=('ee90bdd9654f0886c9585e6d785a1f52' '6c12f92ba80788f5958f7d9b65c81307' \
19          '9e28cc9d8145ff578d7c23df27d44703' 'c977c33d6974e6256b6e9668e6aedf3f' \
20          'b60218af9f88738609f90e796853005d' 'd44b4896cb8a9f65a47d9db697af82aa')
22 build() {
23   cd ${startdir}/src
24   mkdir -p ${startdir}/pkg/usr/share/{applications,pixmaps}
25   cp -r Bombermaaan_${pkgver}.627_20081018_res/* \
26         Bombermaaan_${pkgver}.627_20081018_src/
28   cd ${startdir}/src/Bombermaaan_${pkgver}.627_20081018_src
30   # Applying Patch*
31   patch -Np1 -i ../${pkgname}-Makefiles.patch || return 1
33   make || return 1
34   make prefix=/usr DESTDIR=${startdir}/pkg install || return 1
36   install -m644 ${startdir}/${pkgname}.desktop ${startdir}/pkg/usr/share/applications/ || return 1
37   install -m644 ${startdir}/${pkgname}.{png,svg} ${startdir}/pkg/usr/share/pixmaps/ || return 1