blob: f181b12bb25806a17d62af38beeed880ab04e4f2 (
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
|
# Maintainer: Can Celasun <dcelasun[at]gmail[dot]com>
pkgname=castles-in-the-sky
pkgver=1
pkgrel=3
pkgdesc="A game by the Tall Trees"
arch=(i686 x86_64)
url="http://thetalltreesgames.co.uk/CastlesInTheSky/"
license=('custom')
depends=(wine)
makedepends=(p7zip)
_sourcefile=castlesinthesky_win_12232013.exe
noextract=(${_sourcefile})
source=(castles-in-the-sky)
md5sums=('67b7e26884e1cc0d73c338e531ebff2a')
package() {
msg "You need a full copy of this game in order to install it"
msg "Searching for ${_sourcefile} in dir: \"$startdir\""
pkgpath="$startdir"
if [[ ! -f "${pkgpath}/${_sourcefile}" ]]; then
error "Game installer not found, please type absolute path to ${_sourcefile} (/home/joe):"
read pkgpath
if [[ ! -f "${pkgpath}/${_sourcefile}" ]]; then
error "Unable to find game package." && return 1
fi
fi
msg "Found game package, unpacking..."
cd "${srcdir}"
7z x -aoa -o"${srcdir}/exe" ${pkgpath}/${_sourcefile}
install -d -m755 "${pkgdir}/usr/share/${pkgname}"
install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
cp -ra "${srcdir}"/exe/* "${pkgdir}/usr/share/${pkgname}"
cp "${srcdir}/exe/License.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
find "${pkgdir}/usr/share/${pkgname}" -type d -exec chmod 755 "{}" \;
find "${pkgdir}/usr/share/${pkgname}" -type f -exec chmod 644 "{}" \;
# Remove spaces in the exe file
mv "${pkgdir}/usr/share/${pkgname}/Castles in the Sky.exe" "${pkgdir}/usr/share/${pkgname}/CastlesInTheSky.exe"
install -d -m755 "${pkgdir}/usr/bin"
install -m755 castles-in-the-sky "${pkgdir}/usr/bin"
}
|