blob: 07828c57d17cf8ee1044f3217c1b5acec9abd1f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Maintainer: Sam S. <smls75@gmail.com>
# Contributor: Capi Etheriel <barraponto AT gmail DOT com>
# Based on work by Malte Wessel <muunleit AT lavabit DOT com>
pkgname=atomzombiesmasher-hib
pkgver=1.953+h20130409
_hibver=v1_953-er
pkgrel=1
pkgdesc="A 2D tactics/strategy game where you evacuate civilians from zombie-infested cities. (Humble Bundle/Store version)"
arch=('any')
url="http://blendogames.com/atomzombiesmasher/"
license=("custom:commercial")
depends=('openal' 'flac' 'libpng12' 'libjpeg6' 'libtiff3'
'libgdiplus' 'csfml-bin')
conflicts=("atomzombiesmasherdemo" "atomzombiesmasher")
PKGEXT='.pkg.tar'
_gamepkg="atomzombiesmasher_$_hibver.tar.gz"
source=("$_gamepkg::hib://$_gamepkg"
"atomzombiesmasher.desktop"
"https://apps.ubuntu.com/site_media/icons/2013/12/atom-zombie-smashertCCn9V.png")
md5sums=("6902c845a21e92c62f5b33b38715c797"
"b1f2e18834d1bec5785a889f642e2191"
"341ce551a8525be96d6c59c1bf9efd2a")
_installname=atomzombiesmasher
case $CARCH in
i686) _arch=x86; _other=x86_64; _lib=lib; _libother=lib64 ;;
x86_64) _arch=x86_64; _other=x86; _lib=lib64; _libother=lib ;;
esac
prepare() {
# Create custom launcher
echo -e "#!/usr/bin/sh\n" \
"export MONO_WINFORMS_XIM_STYLE=disabled\n" \
"cd /opt/$_installname\n" \
"exec ./AtomZombieSmasher.bin.$_arch" '"$@"' \
> "launcher.sh"
cd $_installname
# Fix permissions
find -type f -exec chmod 644 {} \;
chmod +x game/AtomZombieSmasher.bin*
# Remove unneeded files
rm game/AtomZombieSmasher.bin.$_other
rm -r game/$_libother
ls game/$_lib/
rm -r game/$_lib/{libcsfml*,libsfml*}
rm -r game/$_lib/{libopenal.so.1,libFLAC.so.8,libgdiplus.so}
rm -r game/$_lib/{libjpeg.so.62,libpng12.so.0,libtiff.so.3}
# Set apart files to install separately
mv readme.html "$srcdir"
}
package() {
# Game data
install -g games -d "$pkgdir"/opt/$_installname
cp -rT $_installname/game "$pkgdir"/opt/$_installname
# Readme
install -Dm644 readme.html \
"$pkgdir"/usr/share/doc/$_installname/readme.html
# Desktop entry
install -Dm644 $_installname.desktop \
"$pkgdir"/usr/share/applications/$_installname.desktop
install -Dm644 atom-zombie-smashertCCn9V.png \
"$pkgdir"/usr/share/pixmaps/$_installname.png
# Launcher
install -Dm755 launcher.sh "$pkgdir"/usr/bin/$_installname
}
|