blob: d6b032ec19336a4e44b3709dcb4d5fbd9f2cd26e (
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
|
# $Id: PKGBUILD 81338 2012-12-18 09:30:27Z 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.3.1
pkgrel=1
pkgdesc="Hardcore 3D space shooter with spaceship upgrade possibilities"
arch=('i686' 'x86_64' 'mips64el')
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=('b2c69deed1708ec25d3fbec0b49f64d8'
'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
}
|