1 # Maintainer: cuihao <cuihao dot leo at gmail dot com>
5 _insdir="opt/${_pkgname}"
8 pkgdesc="A simple but nice game written in Haskell. Guide the fuzzy cat to safety!"
9 url="http://raincat.bysusanlin.com/"
10 license=('custom', 'CCPL')
11 arch=('x86_64' 'i686')
12 if [ "$CARCH" = "x86_64" ]; then
13 depends=('lib32-sdl_mixer' 'lib32-sdl_image' 'lib32-freeglut' 'lib32-gmp')
14 elif [ "$CARCH" = "i686" ]; then
15 depends=('sdl_mixer' 'sdl_image' 'freeglut' 'gmp')
19 source=('http://www.contrib.andrew.cmu.edu/~gchin/downloads/Raincat.tar.gz')
20 md5sums=('0999c6d4563b9c824f1db65cad10a0be')
23 cd "${srcdir}/${_pkgname}"
25 # data and executable files
26 mkdir -p "${pkgdir}/${_insdir}/data"
27 cp -rT data "${pkgdir}/${_insdir}/data"
28 cp {${_pkgname},README} "${pkgdir}/${_insdir}"
30 install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
34 # shell script as a wrapper to start the program
36 echo -e "#!/bin/sh" >> "usr/bin/${_pkgname}"
37 echo -e "cd /${_insdir}" >> "usr/bin/${_pkgname}"
38 echo -e "LD_LIBRARY_PATH+=/${_insdir} exec /${_insdir}/${_pkgname}" \
39 >> "usr/bin/${_pkgname}"
40 chmod a+x "usr/bin/${_pkgname}"
42 # dependence on old libgmp
43 if [ "$CARCH" = "x86_64" ]; then
44 ln -s /usr/lib32/libgmp.so "${_insdir}/libgmp.so.3"
45 elif [ "$CARCH" = "i686" ]; then
46 ln -s /usr/lib/libgmp.so "${_insdir}/libgmp.so.3"