blob: 39dd15a6aa13f13765a509b917909ee2a11a5d85 (
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
|
# Maintainer: Eric Anderson <ejona86@gmail.com>
pkgname=dearesther
pkgver=1.6
pkgrel=1
pkgdesc='An experimental first-person adventure, strongly driven by a fractured narrative (game sold separately)'
arch=('i686' 'x86_64')
url='https://www.thechineseroom.co.uk/games/dear-esther'
license=('custom')
if [ "$CARCH" = "x86_64" ]; then
depends=('lib32-glu' 'lib32-libxi' 'lib32-gcc-libs')
else
depends=('glu' 'libxi' 'gcc-libs')
fi
options=('!strip')
_gamepkg="install-${pkgname}-${pkgver}.bin"
source=("${pkgname}.desktop"
"${pkgname}.sh"
"hib://${_gamepkg}")
md5sums=('3596d66ededb400331f91e5855d79d29'
'a5a32737beb3e795ac3c790851d69c16'
'42ac76a31ac8782bda3e03bd8bec5bf4')
noextract=("${_gamepkg}")
# You can download the Humble Indie Bundle file manually, or you can configure
# DLAGENTS in makepkg.conf or ~/.makepkg.conf to auto-download.
#
# For example, to auto-search through a directory containing Huble Bundle
# downloads, set something like this in your makepkg.conf:
# DLAGENTS=('hib::/usr/bin/bash -c /usr/bin/find\ /path/to/downloads\ -name\ $(echo\ %u\ |\ cut\ -c\ 7-)\ -exec\ ln\ -s\ \\{\\}\ %o\ \\\;\ -quit')
#
# The escaping is a bit obnoxious for this use, so you probably want to make a
# shell script for the command:
# DLAGENTS=('hib::/home/youruser/hib-search.sh %u %o')
#
# /home/youruser/hib-search.sh:
# #!/bin/bash
# find /path/to/downloads -name ${1#hib://} -exec ln -s \{\} $2 \; -quit
DLAGENTS+=('hib::/usr/bin/echo "Could not find %u. Download manually to \"$(pwd)\" or setup hib:// DLAGENT in /etc/makepkg.conf."; echo "Read this PKGBUILD for more info."; exit 1')
PKGEXT='.pkg.tar.gz'
prepare(){
cd "${srcdir}"
mkdir "${pkgname}-${pkgver}"
bsdtar -x -C "${pkgname}-${pkgver}" -f "${_gamepkg}"
}
package(){
cd "${srcdir}/${pkgname}-${pkgver}"
mkdir -p "${pkgdir}/opt/${pkgname}/"
cp -RlP bin etc lib share support "${pkgdir}/opt/${pkgname}"
install -D -m644 "${srcdir}/${pkgname}.desktop" \
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -D -m644 license.txt \
"${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
install -D -m755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
}
|