1 # Maintainer: Maxime Wack <maximewack at free dot fr>
2 # Contributor: Kevin Whitaker <eyecreate at gmail dot com>
7 pkgdesc="Time travel RTS"
9 url='http://achrongame.com/site/'
10 license=('custom: "commercial"')
11 depends=('freetype2' 'openal' 'freealut' 'sdl' 'fontconfig' 'libogg' 'libvorbis')
12 source=('achron-logo.png' 'achron.desktop' 'achron.launcher')
13 md5sums=('ee7e1747beb89d55ea3e8ede089f9b19'
14 '47c6fb2fa98edf2bbe18b0252ca939c4'
15 '16b8b7845359eef7f94e1156236390e0')
16 _gamepkg="AchronLinux64bit-v${pkgver}.tar.bz2"
19 cd $srcdir || return 1
21 msg "You need a full copy of this game in order to install it"
22 msg "Searching for ${_gamepkg} in dir: \"$startdir\""
24 if [[ ! -f "$startdir/${_gamepkg}" ]]; then
25 error "Game package not found, please type absolute path to ${_gamepkg} (/home/joe):"
27 if [[ ! -f "${pkgpath}/${_gamepkg}" ]]; then
28 error "Unable to find game package." && return 1
31 msg "Found game package, installing..."
33 ln -fs ${pkgpath}/${_gamepkg} . || return 1
34 tar jxfv $srcdir/${_gamepkg} || return 1
36 install -d $pkgdir/opt/Achron || return 1
38 cp -R $srcdir/Achron/* $pkgdir/opt/Achron || return 1
47 install -D -m 644 $srcdir/achron-logo.png \
48 $pkgdir/usr/share/pixmaps/achron.png || return 1
52 install -D -m 644 $srcdir/achron.desktop \
53 $pkgdir/usr/share/applications/achron.desktop || return 1
56 # Install Game Launcher
57 install -D -m 755 $srcdir/achron.launcher \
58 $pkgdir/usr/bin/achron || return 1