1 # Maintainer: Thomas Schneider <maxmusterm@gmail.com>
6 pkgdesc="An obscenely addictive, design-based puzzle game about building machines and fighting monsters in the name of science!"
7 url="http://www.gameolith.com/game/spacechem/"
8 license=('custom: "commercial"')
10 makedepends=(binutils wget)
12 #source=("${pkgname}.sh" "${pkgname}.desktop")
13 #md5sums=('dff2d4a980e324c46198fb9193a23099'
14 # 'b458899c445a8baa8238b9594ebee6c1')
15 #if [[ $CARCH == x86_64 ]]; then
16 # _gamepkg="${pkgname}_${pkgver}_amd64.tar.gz"
18 # _gamepkg="${pkgname}_${pkgver}_i386.tar.gz"
21 depends=('mono' 'sdl' 'sdl_image' 'sdl_mixer' 'xclip')
25 msg "You need a Humble Indie Bundle Key to download and install this game"
26 msg "Searching for a _humblebundlefrozensynapse variable with the key in it."
27 if [ ${_humblebundlefrozensynapse} ];then
28 msg "Found game package, installing..."
30 msg "Couldn't find the _humblebundlefrozensynapse variable"
31 msg "Please do 'export _humblebundlefrozensynapse=yourkey' where yourkey is replaced by your key."
32 msg "If you want automated updates without interaction you can place 'export _humblebundlefrozensynapse=yourkey' in your .bashrc file"
35 # Download the file check it and hope for the best ;) I don't want to install a "downloaded patch" right now cause I like automagic updates but if someone asks I will implement it for sure
36 dlink=$(wget -O - "http://www.humblebundle.com/?key=${_humblebundlefrozensynapse}" 2> /dev/null|grep SpaceChem-1 --color|grep "Download .deb"|awk -F\' {'print $10'})
37 wget $dlink -O SpaceChem-$pkgver-hib.tar.gz -c
38 msg "Decompressing game files"
39 tar xfz SpaceChem-$pkgver-hib.tar.gz
40 ar x SpaceChem-i386.deb
45 tar xfz data.tar.gz -C ${pkgdir}