blob: 17e1e026b2d02530c93202af46ac6b504a32d400 (
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
|
# Maintainer: D. Can Celasun <dcelasun[at]gmail[dot]com>
# Contributor: Sebastien Duthil <duthils@free.fr>
pkgname=grim-fandango
pkgver=1.4.0
pkgrel=2
pkgdesc="Grim Fandango Remastered - GOG version"
arch=('i686' 'x86_64')
url="http://grimremastered.com/"
license=('custom: commercial')
depends_i686=('libxcursor' 'gcc-libs' 'alsa-lib' 'libxrandr' 'libxinerama' 'mesa')
depends_x86_64=('lib32-libxcursor' 'lib32-gcc-libs' 'lib32-alsa-lib' 'lib32-libxrandr' 'lib32-libxinerama' 'lib32-mesa')
# The install size is close to 6GB, so don't bother with xz.
PKGEXT=.pkg.tar
source=(${pkgname}.desktop
${pkgname})
md5sums=('8ef119e66bbdb8017aa045eef9736054'
'b84aeccef5eb8dfc3679cdee874f218c')
_gamepkg=gog_grim_fandango_remastered_${pkgver}.tar.gz
build() {
msg "You need a full copy of this game in order to install it"
msg "Searching for ${_gamepkg} in dir: \"$startdir\""
pkgpath="$startdir"
if [[ ! -f "${pkgpath}/${_gamepkg}" ]]; then
error "Game package not found, please type absolute path to ${_gamepkg} (/home/joe):"
read pkgpath
if [[ ! -f "${pkgpath}/${_gamepkg}" ]]; then
error "Unable to find game package." && return 1
fi
fi
msg "Found game package, unpacking..."
tar xf "${pkgpath}/${_gamepkg}" -C "${srcdir}"
}
package() {
install -d "${pkgdir}/opt/${pkgname}"
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -d "${pkgdir}/usr/share/applications"
install -d "${pkgdir}/usr/bin"
cd "${srcdir}/Grim Fandango Remastered/"
mv * "${pkgdir}/opt/${pkgname}/"
install -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -m644 "${pkgdir}/opt/${pkgname}/docs/End User License Agreement.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -m755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin"
chmod 777 "${pkgdir}"/opt/${pkgname} -R
}
|