1 # Maintainer: Jesse Jaara <gmail.com: jesse.jaara>
6 pkgdesc="Official Hamster Republic Role Playing Game Construction Engine"
8 url="http://hamsterrepublic.com/ohrrpgce/Main_Page.html"
10 if [ "$CARCH" = "x86_64" ]; then
11 depends=('lib32-sdl_mixer' 'lib32-libxpm' 'timidity++' 'euphoria3' )
12 makedepends=('gcc-multilib')
14 depends=('sdl_mixer' 'timidity++' 'euphoria3' 'libxpm')
16 makedepends=('freebasic')
17 source=(http://huulivoide.pp.fi/Arch/$pkgname-$pkgver.tar.xz
18 hsspiffy.e.revert.patch makeutil.patch)
21 cd "$srcdir/$pkgname-$pkgver"
22 if [ "$CARCH" = "x86_64" ]; then
23 sed 's|gcc|gcc -m32|g' -i makeedit.sh
24 sed 's|gcc|gcc -m32|g' -i makegame.sh
27 patch -p0 -i ../hsspiffy.e.revert.patch
28 patch -p0 -i ../makeutil.patch
36 cd "$srcdir/$pkgname-$pkgver"
38 mv ohrrpgce-custom ohrrpgce-custom.bin
39 echo -e "#!/bin/sh\ncd /usr/share/ohrrpgce\nexec ./ohrrpgce-custom.bin \"\${@}\""\
40 > ohrrpgce-custom && chmod +x ohrrpgce-custom
41 mkdir -p "${pkgdir}/usr/bin/"
42 mkdir -p "${pkgdir}/usr/share/ohrrpgce/"
43 mkdir -p "${pkgdir}/usr/share/doc/ohrrpgce/"
45 cp hspeak ohrrpgce-{game,custom} {re,un}lump "${pkgdir}/usr/bin/"
46 cp ohrrpgce-custom.bin "${pkgdir}/usr/share/ohrrpgce/"
47 cp ohrrpgce.new plotscr.hsd scancode.hsi "${pkgdir}/usr/share/ohrrpgce/"
48 cp -r import "${pkgdir}/usr/share/ohrrpgce/"
49 cp -r docs "${pkgdir}/usr/share/doc/ohrrpgce/"
50 cp -r ohrhelp "${pkgdir}/usr/share/doc/ohrrpgce/"
53 # vim:set ts=2 sw=2 et:
54 md5sums=('892b782b96b69b35250047b8780deab2'
55 '3ab29a517a374e8bda261307d48d7efe'
56 'ee94a19f18df9f6eaefff01a487275f5')