From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/astromenace/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 community/astromenace/PKGBUILD (limited to 'community/astromenace/PKGBUILD') diff --git a/community/astromenace/PKGBUILD b/community/astromenace/PKGBUILD new file mode 100644 index 000000000..403ebf339 --- /dev/null +++ b/community/astromenace/PKGBUILD @@ -0,0 +1,42 @@ +# $Id: PKGBUILD 94294 2013-07-18 23:41:16Z svenstaro $ +# Maintainer: Sven-Hendrik Haase +# Contributor: Arkham +# Contributor: Ivan Bobrov +# Contributor: Black_Mage + +pkgname=astromenace +pkgver=1.3.2 +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' 'freetype2' 'libxinerama') +makedepends=('cmake' 'mesa') +source=(http://downloads.sourceforge.net/openastromenace/astromenace-src-$pkgver.tar.bz2 + astromenace.desktop) +md5sums=('a1481ca7cf498773fddc16a3b41c9b9b' + '1edc9367564a6c639a2b8199adf26a08') + +build() { + cd $srcdir/AstroMenace + + [[ -d build ]] && rm -r build + mkdir build && cd build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DDATADIR=/usr/share/astromenace + make +} + +package() { + cd $srcdir/AstroMenace + + build/AstroMenace --pack --rawdata=./RAW_VFS_DATA --dir=build + + 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 +} -- cgit v1.2.3-54-g00ecf