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

astromenace: update bdeps; genpkg_rules is launch without any bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 09 18:39:35 2016 +0200 (2016-07-09)
parents 5470f0dedfef
children 31254af4bf5e
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 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 }