wok-6.x view astromenace/receipt @ rev 19940

liboping: fix build
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 30 17:53:19 2017 +0200 (2017-04-30)
parents 1f63539d6309
children 06e7758ce6d8
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 shooting space"
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 mesa-dev"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
26 cd $src
27 cmake .
28 make
29 ./AstroMenace --pack --rawdata=./RAW_VFS_DATA
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
41 chmod +x $src/$GAME
43 cp -a $src/$GAME $install/$GAME_DIR
44 cp -a $src/astromenace_64.png $install/$GAME_DIR
45 cp -a $src/astromenace_128.png $install/$GAME_DIR
46 cp -a $src/ChangeLog.txt $install/$GAME_DIR
47 cp -a $src/gamedata.vfs $install/$GAME_DIR
48 cp -a $src/gpl-3.0.txt $install/$GAME_DIR
50 mkdir -p $install/usr/share/pixmaps
51 cp -a $src/astromenace_64.png $install/usr/share/pixmaps/astromenace.png
53 mkdir -p $install/usr/share/applications
54 cat > $install/usr/share/applications/astromenace.desktop << EOT
55 [Desktop Entry]
56 Type=Application
57 Name=$GAME
58 Exec=/$GAME_DIR/$GAME
59 Icon=$PACKAGE
60 Terminal=false
61 X-MultipleArgs=false
62 StartupNotify=false
63 Categories=Game;ActionGame;
65 EOT
67 cp -a $install/* $fs
69 }