wok diff astromenace/receipt @ rev 19296

Add AstroMenace Game
author Leonardo Laporte <hackdorte@sapo.pt>
date Sat Jul 09 05:20:59 2016 -0300 (2016-07-09)
parents
children 8ae0a3d6a06f
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/astromenace/receipt	Sat Jul 09 05:20:59 2016 -0300
     1.3 @@ -0,0 +1,69 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="astromenace"
     1.7 +VERSION="1.3.2"
     1.8 +CATEGORY="games"
     1.9 +SHORT_DESC="Hardcore 3D space shooter with spaceship upgrade possibilities."
    1.10 +MAINTAINER="hackdorte@sapo.pt"
    1.11 +LICENSE="GPL3"
    1.12 +TARBALL="$PACKAGE-src-$VERSION.tar.bz2"
    1.13 +
    1.14 +WEB_SITE="http://viewizard.com/astromenace/index_linux.php"
    1.15 +WGET_URL="$SF_MIRROR/openastromenace/$TARBALL"
    1.16 +
    1.17 +TAGS="arcade game"
    1.18 +
    1.19 +DEPENDS="libsdl libogg libvorbis libglu-mesa openal freealut \
    1.20 +xorg-libXinerama freetype"
    1.21 +
    1.22 +BUILD_DEPENDS="libsdl-dev libogg-dev libvorbis-dev libglu-mesa-dev \
    1.23 +openal-dev freealut-dev xorg-libXinerama-dev freetype-dev cmake"
    1.24 +
    1.25 +# Rules to configure and make the package.
    1.26 +compile_rules()
    1.27 +{
    1.28 +
    1.29 +cmake ./
    1.30 +make
    1.31 +
    1.32 +}
    1.33 +
    1.34 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.35 +genpkg_rules()
    1.36 +{
    1.37 +
    1.38 +GAME="AstroMenace"
    1.39 +GAME_DIR="usr/games/$GAME"
    1.40 +
    1.41 +mkdir -p $install/$GAME_DIR
    1.42 +cd $src && ./$GAME --pack --rawdata=./RAW_VFS_DATA
    1.43 +
    1.44 +chmod +x $src/$GAME
    1.45 +
    1.46 +cp -a $src/$GAME $install/$GAME_DIR
    1.47 +cp -a $src/astromenace_64.png $install/$GAME_DIR
    1.48 +cp -a $src/astromenace_128.png $install/$GAME_DIR
    1.49 +cp -a $src/ChangeLog.txt $install/$GAME_DIR
    1.50 +cp -a $src/gamedata.vfs $install/$GAME_DIR
    1.51 +cp -a $src/gpl-3.0.txt $install/$GAME_DIR
    1.52 +
    1.53 +mkdir -p $install/usr/share/pixmaps
    1.54 +cp -a $src/astromenace_64.png $install/usr/share/pixmaps/astromenace.png
    1.55 +
    1.56 +mkdir -p $install/usr/share/applications
    1.57 +cat > $install/usr/share/applications/astromenace.desktop << EOT
    1.58 +[Desktop Entry]
    1.59 +Type=Application
    1.60 +Name=$GAME
    1.61 +Exec=/$GAME_DIR/$GAME
    1.62 +Icon=$PACKAGE
    1.63 +Terminal=false
    1.64 +X-MultipleArgs=false
    1.65 +StartupNotify=false
    1.66 +Categories=Game;ActionGame;
    1.67 +
    1.68 +EOT
    1.69 +
    1.70 +cp -a $install/* $fs
    1.71 +
    1.72 +}