1 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
6 pkgdesc='A remake of the classic platformer "Knightmare II: The Maze of Galious"'
8 url="http://www.braingames.getput.com/mog/"
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 \
14 md5sums=('49b6ab183396793475e4030fe9465d94'
15 '68c37b2a2f84407e24b37aa2d8379c23'
16 '214778ecee72b062bde3b1074ca05071')
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
28 for i in lavahit demon2ball owl; do
29 cp -f ../null.wav sound/jorito/$i.wav
34 find -name 'demon-vfast.ogg' -exec chmod 644 {} \;
36 sed 's|= -g3 -O3|+=|g' -i Makefile
37 export CFLAGS="${CXXFLAGS}"
40 make PREFIX="$pkgdir"/usr \
41 GAMEDIR="$pkgdir"/usr/bin \
42 BINDIR="$pkgdir"/usr/share/mog \
45 install -m755 ../$pkgname.sh "$pkgdir"/usr/bin/$pkgname
48 # vim:set ts=2 sw=2 et: