updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / ohrrpgce / PKGBUILD
bloba3844dc186221961661c6105bc0049a2d6174441
1 # Maintainer: Jesse Jaara <gmail.com: jesse.jaara>
3 pkgname=ohrrpgce
4 pkgver=20110506.1
5 pkgrel=1
6 pkgdesc="Official Hamster Republic Role Playing Game Construction Engine"
7 arch=(i686 x86_64)
8 url="http://hamsterrepublic.com/ohrrpgce/Main_Page.html"
9 license=('GPL')
10 if [ "$CARCH" = "x86_64" ]; then
11 depends=('lib32-sdl_mixer' 'lib32-libxpm' 'timidity++' 'euphoria3' )
12 makedepends=('gcc-multilib')
13 else
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)
20 build() {
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
25   fi
27   patch -p0 -i ../hsspiffy.e.revert.patch
28   patch -p0 -i ../makeutil.patch
30   ./makeedit.sh
31   ./makegame.sh
32   ./makeutil.sh
35 package() {
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')