blob: e03cd54c5676249925308d31b28fcd1473b23b76 (
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
|
# Maintainer: Sam S <smls75@gmail.com>
# Contributor: Daniel Wallace < danielwallace at gtmanfred dot com>
pkgname=bastion
pkgver=1.2+h20120621
_hibver=2012-06-20
pkgrel=1
pkgdesc="An action role-playing game set in a lush imaginative world (Humble Bundle/Store version)"
url="http://www.supergiantgames.com/games/bastion/"
license=('custom')
arch=('i686' 'x86_64')
groups=("hib5" "hib9")
depends=('libxft')
PKGEXT=".pkg.tar"
_gamepkg="Bastion-HIB-${_hibver}.sh"
_installname=bastion
source=("hib://$_gamepkg"
"$_installname.desktop")
md5sums=('aa6ccaead3b4b8a5fbd156f4019e8c8b'
'ff287fa599220f913e8a1ba7b062037e')
case $CARCH in
i686) _arch=x86 ;;
x86_64) _arch=x86_64 ;;
esac
prepare() {
msg2 "Prepare launch script..."
echo "#!/usr/bin/env bash\n" \
"export force_s3tc_enable=true\n" \
"cd /opt/Bastion\n" \
"/Bastion.bin.$_arch"
> launcher.sh
}
package() {
# Run installer
[[ -d "$_installname-$_hibver" ]] && rm -r "$_installname-$_hibver"
sh $_gamepkg -u --packager pacman --nox11 --unattended \
--target "$srcdir"/"$_installname-$_hibver" \
--bindir "$pkgdir"/usr/bin \
--datadir "$pkgdir"/opt
# Fix permissions
find "$pkgdir" -type f -exec chmod 644 "{}" +
# Install desktop file & icon
install -Dm644 $_installname.desktop \
"$pkgdir"/usr/share/applications/$_installname.desktop
install -Dm644 "$pkgdir"/opt/Bastion/Bastion.png \
"$pkgdir"/usr/share/icons/$_installname.png
# Install launch script
install -Dm755 launcher.sh "$pkgdir"/usr/bin/$_installname
}
|