blob: a923c4cc1e48c0cb5b98268499704016f5894f92 (
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
|
# Maintainer: fordprefect <fordprefect@dukun.de>
pkgname=humanresourcemachine
pkgver=2016.03.23
pkgrel=2
pkgdesc="Assembler programming puzzle game by the makers of WorldOfGoo - game sold separately"
url="http://tomorrowcorporation.com/humanresourcemachine"
arch=('i686' 'x86_64')
license=('custom')
depends=("sdl2" "openal")
source=("humblestore://HumanResourceMachine-Linux-2016-03-23.sh")
md5sums=('ac6013284194203c4732e713dcc0f543')
PKGEXT=.pkg.tar
DLAGENTS+=('humblestore://usr/bin/echo "Could not find %u. Manually download it to \"$(pwd)\". Game available from GOG or HumbleStore."; exit 1')
package() {
if [[ $CARCH == 'i686' ]]
then
install -Dm755 "$srcdir/data/x86/HumanResourceMachine.bin.x86" "${pkgdir}/opt/humanresourcemachine/HumanResourceMachine.bin"
#cp -R "${srcdir}/data/x86/lib/"* "${pkgdir}/usr/lib/"
elif [[ $CARCH == 'x86_64' ]]
then
install -Dm755 "$srcdir/data/x86_64/HumanResourceMachine.bin.x86_64" "${pkgdir}/opt/humanresourcemachine/HumanResourceMachine.bin"
#cp -R "${srcdir}/data/x86_64/lib64/"* "${pkgdir}/usr/lib/"
fi
# copy files
install -Dm644 "$srcdir/data/noarch/LICENSE.txt" "$pkgdir/usr/share/licenses/humanresourcemachine/LICENSE"
install -Dm644 "$srcdir/data/noarch/README.linux" "$pkgdir/opt/humanresourcemachine/README"
install -Dm644 "$srcdir/data/noarch/icon.png" "$pkgdir/opt/humanresourcemachine/icon.png"
install -Dm644 "$srcdir/data/noarch/resource.pak" "$pkgdir/opt/humanresourcemachine/resource.pak"
cp -R "$srcdir/data/noarch/shaders" "$pkgdir/opt/humanresourcemachine/"
# starter script
mkdir -p "${pkgdir}/usr/bin"
cat >> "${pkgdir}/usr/bin/humanresourcemachine" << \here
#!/usr/bin/bash
cd /opt/humanresourcemachine
./HumanResourceMachine.bin
here
chmod a+x "${pkgdir}/usr/bin/humanresourcemachine"
}
|