updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / mog / PKGBUILD
blobdd37de14dd1fde803f6fea2f850d255448b82d7d
1 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
3 pkgname=mog
4 pkgver=0.63_1305
5 pkgrel=3
6 pkgdesc='A remake of the classic platformer "Knightmare II: The Maze of Galious"'
7 arch=('i686' 'x86_64')
8 url="http://www.braingames.getput.com/mog/"
9 license=('GPL')
10 depends=('bash' 'gcc-libs' 'sdl_image' 'sdl_mixer' 'sdl_sound')
11 source=(http://braingames.jorito.net/mog/downloads/mog.src_0.63-1305.tgz \
12         $pkgname.sh \
13         null.wav)
14 md5sums=('49b6ab183396793475e4030fe9465d94'
15          '68c37b2a2f84407e24b37aa2d8379c23'
16          '214778ecee72b062bde3b1074ca05071')
18 build() {
19   cd mog.src_${pkgver//_/-}
21   # remove non-free graphics and sounds and replace them
23   rm -rf {graphics,sound}/original
25   sed 's|graphics/original|graphics/alternate|g' -i sources/main.cpp
26   sed 's|sound/original|sound/jorito|g' -i sources/main.cpp
27   
28   for i in lavahit demon2ball owl; do
29         cp -f ../null.wav sound/jorito/$i.wav
30   done
32   # done
34   find -name 'demon-vfast.ogg' -exec chmod 644 {} \;
36   sed 's|= -g3 -O3|+=|g' -i Makefile
37   export CFLAGS="${CXXFLAGS}"
39   make || return 1
40   make  PREFIX="$pkgdir"/usr \
41         GAMEDIR="$pkgdir"/usr/bin \
42         BINDIR="$pkgdir"/usr/share/mog \
43         install
45   install -m755 ../$pkgname.sh "$pkgdir"/usr/bin/$pkgname
48 # vim:set ts=2 sw=2 et: