1 # Maintainer: Gadget30000 <gadget3000 at msn dot com>
5 pkgdesc="Battle to save Darwinias innocent inhabitants, the Darwinians, from an evil viral infection"
7 url="http://www.introversion.co.uk/multiwinia/"
8 groups=('humbleintbundle' 'humblebundles')
10 depends=('mesa' 'openal' 'sdl' 'libvorbis' 'libpng12')
11 source=('multiwinia.desktop')
12 md5sums=('8132259414180ad994c27cd2770ffc67')
14 if [ "${CARCH}" = "x86_64" ]; then
16 _archive_md5="5eaba188f84ad985fe9b5d36e3bf85a3"
20 _archive_md5="bbc7d907431f15065a0f38f6623c4217"
24 _archive="multiwinia_${pkgver}-1_${_carch}.tar.gz"
29 if [ ! -f ${_multiwiniaarchivelocation}${_archive} ]; then
30 if [ ! -f ${_archive} ] && [ -n "${_humbleintbundlekey}" ]; then
31 rm -f ${_archive}* index.html\?key\=${_humbleintbundlekey}*
32 wget http://www.humblebundle.com/?key=${_humbleintbundlekey}
33 wget $(cat index.html\?key\=${_humbleintbundlekey} | grep "${_archive}" | cut -d "'" -f 10)
34 mv ${_archive}* ${_archive}
35 elif [ -z "${_humbleintbundlekey}" ]; then
36 echo You can automate the download of the archive using the _humbleintbundlekey bash variable.
37 echo Just add \'export _humbleintbundlekey\=\<Your key here\>\' to \.bashrc
39 echo Otherwise please just place ${_archive} into $(pwd)/
40 echo Press Enter to continue
45 if [ ! -f ${_multiwiniaarchivelocation}${_archive} ]; then
46 echo "${_multiwiniaarchivelocation}${_archive} not found!"
50 if ! echo "${_archive_md5} ${_multiwiniaarchivelocation}${_archive}" | md5sum -c --quiet; then
51 echo "Invalid checksum for ${_multiwiniaarchivelocation}${_archive}"
55 install -d ${pkgdir}/usr/share/
56 tar xzf ${_multiwiniaarchivelocation}${_archive} -C ${pkgdir}/usr/share/
57 install -d ${pkgdir}/usr/bin
58 ln -s /usr/share/multiwinia/multiwinia.bin.x86${_bin_postfix} ${pkgdir}/usr/bin/multiwinia
61 install -d ${pkgdir}/usr/share/pixmaps/
62 install -D -m644 ${pkgdir}/usr/share/multiwinia/multiwinia.png ${pkgdir}/usr/share/pixmaps/ || return 1
65 install -d ${pkgdir}/usr/share/applications
66 cp ${srcdir}/multiwinia.desktop ${pkgdir}/usr/share/applications/
68 # echo Installing the License
69 # install -d ${pkgdir}/usr/share/licenses/${pkgname}
70 # install -D -m644 ${pkgdir}/usr/share/multiwinia/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
72 if [ "${CARCH}" = "x86_64" ]; then
73 rm -rf ${pkgdir}/usr/share/multiwinia/lib64
75 rm -rf ${pkgdir}/usr/share/multiwinia/lib32
78 chown -Rh root:root ${pkgdir}/usr/share/multiwinia