blob: 07ea41c7313e0a5540b64e7fae79d60f42bc96e3 (
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
|
# Maintainer: dustball
pkgname=runner2
pkgver=1.0
_hibver=1388171186
pkgrel=3
pkgdesc="BIT.TRIP Presents... Runner2: Future Legend of Rhythm Alien"
url="http://www.runner2.com/"
arch=('i686' 'x86_64')
license=('custom')
depends=('sdl' 'libgl' 'zlib')
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')
case $CARCH in
i686)
_archive_arch='i386'
_archive_md5='ea105bdcd486879fb99889b87e90eed5' ;;
x86_64)
_archive_arch='amd64'
_archive_md5='2f7ccdb675a63a5fc152514682e97480' ;;
esac
_archive="runner2_${_archive_arch}_${_hibver}.tar.gz"
source=("hib://${_archive}")
md5sums=("${_archive_md5}")
# don't compress the generated package as it's just a transient package
PKGEXT='.pkg.tar'
package()
{
cd "${pkgname}-1.0/"
# Install game files
mkdir -p "${pkgdir}/opt/${pkgname}/"
mv "${pkgname}"/* "${pkgdir}/opt/${pkgname}/"
# Install launcher script
echo -e "#!/bin/sh\ncd /opt/${pkgname} && ./${pkgname}" \
> "launcher.sh"
install -Dm755 "launcher.sh" "${pkgdir}/usr/bin/${pkgname}"
# Install desktop entry
# patch the included desktop entry paths
sed -i 's|/usr/local/bin|/usr/bin|' "${pkgname}.desktop"
sed -i 's|/usr/local/share/gaijin_games|/opt|' "${pkgname}.desktop"
install -Dm644 "${PWD}/${pkgname}.desktop" \
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
# Install documentation
mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
mv "README"* "${pkgdir}/usr/share/doc/${pkgname}"
# cleanup
rm -rf "${pkgdir}/opt/tmp/"
}
|