1 # Contributor: Ju Liu <liuju86 at gmail dot com>
2 # Adopted for russian: Vladimir Ermakov <vooon341@gmail.com>
9 pkgdesc="Hardcore 3D space shooter with spaceship upgrade possibilities. Russian version"
10 arch=('i686' 'x86_64')
11 url="http://www.viewizard.com/astromenace/index_linux.php"
13 depends=('sdl' 'freealut' 'libjpeg' 'libvorbis' 'mesa')
14 provides=('astromenace')
15 conflicts=('astromenace')
17 source=(http://downloads.sourceforge.net/openastromenace/openamenace-src-${pkgver}.tar.bz2
18 http://downloads.sourceforge.net/openastromenace/oamenace-data-${pkgver}.tar.bz2
19 http://downloads.sourceforge.net/openastromenace/oamenace-lang-${_lang}-${pkgver}.tar.bz2
20 http://bugs.gentoo.org/attachment.cgi?id=162887
24 md5sums=('3c8e7013aa64fcde7ba8a7750df51ab8'
25 'a8ad3495f8eac419ebcf93473008484d'
26 '3be24166852c7de74158e8298d142148'
27 '189071431f37b57ec5be3f090b46041e'
28 '1edc9367564a6c639a2b8199adf26a08'
29 '1643d876d4e21cc0c6ceddc8e7c8ceed'
30 '3cc4aee0786778ef96d2fdd38d2e5263')
33 #Patch build and install the engine
34 cd ${srcdir}/OpenAstroMenaceSVN
35 patch -p0 < ${srcdir}/attachment.cgi\?id=162887
36 cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr || return 1
37 sed -i 's/`sdl-config --libs`/-lSDL -lpthread/' CMakeFiles/AstroMenace.dir/link.txt
40 #Manually install the engine and data
41 install -D -m 755 AstroMenace ${pkgdir}/usr/share/astromenace/AstroMenace || return 1
42 install -D -m 644 ${srcdir}/gamedata.vfs ${pkgdir}/usr/share/astromenace/gamedata.vfs || return 1
43 install -D -m 644 ${srcdir}/gamelang_${_lang}.vfs ${pkgdir}/usr/share/astromenace/gamelang.vfs || return 1
44 cp -rp ${srcdir}/DATA ${pkgdir}/usr/share/astromenace/DATA || return 1
46 #Install the .desktop and icon files
47 install -D -m 644 ${srcdir}/astromenace.desktop ${pkgdir}/usr/share/applications/astromenace.desktop || return 1
48 install -D -m 644 ${srcdir}/astromenace.png ${pkgdir}/usr/share/pixmaps/astromenace.png || return 1
51 install -D -m 755 ${srcdir}/astromenace.sh ${pkgdir}/usr/bin/astromenace || return 1