blob: 9f5d453c4cbf635a724800383a95aac38b513383 (
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
|
# Maintainer: aarto <aarto@aur.archlinux.org>
# Contributor: mirandir <mirandir[at]orange[dot]com>
# Contributor: J0k3r <moebius282 at gmail dot com>
_pkgname=limbo
pkgname=$_pkgname-hib
pkgver=20140618
pkgrel=1
pkgdesc="LIMBO is a modern classic, putting players in control of a boy's journey through a tense and hostile world. Package for owners of the Humble Indie Bundle."
url='https://playdead.com/games/limbo/'
license=('custom:commercial')
arch=('i686' 'x86_64')
depends_i686=('sdl2')
depends_x86_64=('lib32-sdl2')
makedepends=('unzip')
_archivename="${_pkgname^}-Linux-2014-06-18.sh"
conflicts=('limbo_wine')
_purgelibs=('libSDL2-2.0.so.0')
noextract=("$_archivename")
source=("$_pkgname.desktop" "hib://$_archivename")
sha256sums=('be458f507ea5e730967c2dc6e3daec356da75d5b77b29c5d8184093fada02161'
'e7843c8aaf3d3225814dd98ae1dc39238d9b247f1915b98964a91d10f11f27d3')
PKGEXT=".pkg.tar"
DLAGENTS+=('hib::/usr/bin/echo "Could not find %u. Manually download it to \"$(pwd)\", or set up a hib:// DLAGENT in /etc/makepkg.conf."; exit 1')
package()
{
mkdir -p "$pkgdir/opt/$_pkgname/"
unzip -qq "$srcdir/$_archivename" -d "$pkgdir/opt/tmp/" 'data/*' || true
mv "$pkgdir/opt/tmp/data/"* "$pkgdir/opt/$_pkgname/"
rm -r "$pkgdir/opt/tmp/"
for i in "${_purgelibs[@]}"; do
rm "$pkgdir/opt/$_pkgname/$i"
done
install -d "$pkgdir/usr/bin/"
ln -s "/opt/$pkgname/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
install -D -m644 "$srcdir/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
}
|