diff options
Diffstat (limited to 'community/astromenace/PKGBUILD')
-rw-r--r-- | community/astromenace/PKGBUILD | 55 |
1 files changed, 21 insertions, 34 deletions
diff --git a/community/astromenace/PKGBUILD b/community/astromenace/PKGBUILD index 145b5e98e..8f6c185a2 100644 --- a/community/astromenace/PKGBUILD +++ b/community/astromenace/PKGBUILD @@ -1,55 +1,42 @@ -# $Id: PKGBUILD 77621 2012-10-13 11:41:17Z allan $ +# $Id: PKGBUILD 78708 2012-10-23 00:34:23Z svenstaro $ # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> # Contributor: Arkham <arkham at archlinux dot us> # Contributor: Ivan Bobrov <ibobrik at gmail dot com> # Contributor: Black_Mage <vleon1 at gmail dot com> pkgname=astromenace -pkgver=1.2.0 -pkgrel=6 -pkgdesc="Hardcore 3D space shooter with spaceship upgrade possibilities. English version" +pkgver=1.3.0 +pkgrel=1 +pkgdesc="Hardcore 3D space shooter with spaceship upgrade possibilities" arch=('i686' 'x86_64') url="http://www.viewizard.com/astromenace/index_linux.php" license=('GPL3') -depends=('sdl' 'freealut' 'libjpeg' 'libvorbis' 'glu') +depends=('sdl' 'freealut' 'libjpeg' 'libvorbis' 'glu' 'freetype2' 'libxinerama') makedepends=('cmake' 'mesa') -source=(http://downloads.sourceforge.net/openastromenace/openamenace-src-$pkgver.tar.bz2 - http://downloads.sourceforge.net/openastromenace/oamenace-data-$pkgver.tar.bz2 - http://downloads.sourceforge.net/openastromenace/oamenace-lang-en-$pkgver.tar.bz2 - astromenace.desktop - astromenace.png - astromenace.patch - astromenace.sh) -md5sums=('3c8e7013aa64fcde7ba8a7750df51ab8' - 'a8ad3495f8eac419ebcf93473008484d' - 'f137da529da1345a0243f22fb8bf4913' - '1edc9367564a6c639a2b8199adf26a08' - '1643d876d4e21cc0c6ceddc8e7c8ceed' - '8d23310a2bb9c96dd150d30ab39799a1' - '2d4504929a620709cd058657bba335b3') +source=(http://downloads.sourceforge.net/openastromenace/openastromenace-src-$pkgver.tar.bz2 + astromenace.desktop) +md5sums=('f48385106da687c12996d25852191e76' + '1edc9367564a6c639a2b8199adf26a08') build() { - cd $srcdir/OpenAstroMenaceSVN + cd $srcdir/AstroMenace - # Patch build and install the engine - patch -Np1 -i $srcdir/$pkgname.patch - cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr - sed -i 's/`sdl-config --libs`/-lSDL -lpthread/' CMakeFiles/AstroMenace.dir/link.txt + [[ -d build ]] && rm -r build + mkdir build && cd build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DDATADIR=/usr/share/astromenace make } package() { - cd $srcdir/OpenAstroMenaceSVN + cd $srcdir/AstroMenace - # Manually install the engine and data - install -Dm 755 AstroMenace $pkgdir/usr/bin/astromenace_bin - install -Dm 644 $srcdir/gamedata.vfs $pkgdir/usr/share/astromenace/gamedata.vfs - install -Dm 644 $srcdir/gamelang_en.vfs $pkgdir/usr/share/astromenace/gamelang_en.vfs - install -d $pkgdir/usr/share/astromenace/DATA/SCRIPT - install -m 644 $srcdir/DATA/SCRIPT/* $pkgdir/usr/share/astromenace/DATA/SCRIPT + build/AstroMenace --pack --rawdata=./RAW_VFS_DATA --dir=build - # Install .desktop, icon and bin + install -Dm755 build/AstroMenace $pkgdir/usr/bin/astromenace + install -Dm644 build/gamedata.vfs $pkgdir/usr/share/astromenace/gamedata.vfs + + install -Dm 644 astromenace_128.png $pkgdir/usr/share/pixmaps/astromenace.png install -Dm 644 $srcdir/astromenace.desktop $pkgdir/usr/share/applications/astromenace.desktop - install -Dm 644 $srcdir/astromenace.png $pkgdir/usr/share/pixmaps/astromenace.png - install -Dm 755 $srcdir/astromenace.sh $pkgdir/usr/bin/astromenace } |