wok view astromenace/receipt @ rev 19298

rev: AstroMenace (again)
author Leonardo Laporte <hackdorte@sapo.pt>
date Sat Jul 09 07:32:04 2016 -0300 (2016-07-09)
parents 8ae0a3d6a06f
children 1f63539d6309
line source
1 # SliTaz package receipt.
3 PACKAGE="astromenace"
4 VERSION="1.3.2"
5 CATEGORY="games"
6 SHORT_DESC="Hardcore 3D space shooter with spaceship upgrade possibilities."
7 MAINTAINER="hackdorte@sapo.pt"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-src-$VERSION.tar.bz2"
11 WEB_SITE="http://viewizard.com/astromenace/index_linux.php"
12 WGET_URL="$SF_MIRROR/openastromenace/$TARBALL"
14 TAGS="arcade game"
16 DEPENDS="cmake libsdl libogg libvorbis libglu-mesa openal freealut \
17 xorg-libXinerama freetype"
19 BUILD_DEPENDS="gcc cmake make libsdl-dev libogg-dev libvorbis-dev libglu-mesa-dev \
20 openal-dev freealut-dev xorg-libXinerama-dev freetype-dev"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
26 cd $src
27 cmake .
28 make
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
36 GAME="AstroMenace"
37 GAME_DIR="usr/games/$GAME"
39 mkdir -p $install/$GAME_DIR
40 cd $src && ./$GAME --pack --rawdata=./RAW_VFS_DATA
42 chmod +x $src/$GAME
44 cp -a $src/$GAME $install/$GAME_DIR
45 cp -a $src/astromenace_64.png $install/$GAME_DIR
46 cp -a $src/astromenace_128.png $install/$GAME_DIR
47 cp -a $src/ChangeLog.txt $install/$GAME_DIR
48 cp -a $src/gamedata.vfs $install/$GAME_DIR
49 cp -a $src/gpl-3.0.txt $install/$GAME_DIR
51 mkdir -p $install/usr/share/pixmaps
52 cp -a $src/astromenace_64.png $install/usr/share/pixmaps/astromenace.png
54 mkdir -p $install/usr/share/applications
55 cat > $install/usr/share/applications/astromenace.desktop << EOT
56 [Desktop Entry]
57 Type=Application
58 Name=$GAME
59 Exec=/$GAME_DIR/$GAME
60 Icon=$PACKAGE
61 Terminal=false
62 X-MultipleArgs=false
63 StartupNotify=false
64 Categories=Game;ActionGame;
66 EOT
68 cp -a $install/* $fs
70 }