wok annotate astromenace/receipt @ rev 21665
mc: configure --without-subshell
author | maniac |
---|---|
date | Sat Jun 01 13:26:35 2019 +0300 (2019-06-01) |
parents | a78610b2eb47 |
children | bf7c6f0f2896 |
rev | line source |
---|---|
hackdorte@19296 | 1 # SliTaz package receipt. |
hackdorte@19296 | 2 |
hackdorte@19296 | 3 PACKAGE="astromenace" |
hackdorte@19296 | 4 VERSION="1.3.2" |
hackdorte@19296 | 5 CATEGORY="games" |
hackdorte@19296 | 6 SHORT_DESC="Hardcore 3D space shooter with spaceship upgrade possibilities." |
hackdorte@20008 | 7 MAINTAINER="hackdorte@yandex.com" |
hackdorte@20008 | 8 LICENSE="GPLv3" |
hackdorte@19296 | 9 TARBALL="$PACKAGE-src-$VERSION.tar.bz2" |
hackdorte@19296 | 10 |
pascal@20859 | 11 WEB_SITE="https://viewizard.com/" |
hackdorte@19296 | 12 WGET_URL="$SF_MIRROR/openastromenace/$TARBALL" |
hackdorte@19296 | 13 |
hackdorte@19313 | 14 TAGS="arcade game shooting space" |
hackdorte@19296 | 15 |
hackdorte@19298 | 16 DEPENDS="cmake libsdl libogg libvorbis libglu-mesa openal freealut \ |
hackdorte@19296 | 17 xorg-libXinerama freetype" |
hackdorte@19296 | 18 |
hackdorte@19298 | 19 BUILD_DEPENDS="gcc cmake make libsdl-dev libogg-dev libvorbis-dev libglu-mesa-dev \ |
pascal@19301 | 20 openal-dev freealut-dev xorg-libXinerama-dev freetype-dev mesa-dev" |
hackdorte@19296 | 21 |
hackdorte@19296 | 22 # Rules to configure and make the package. |
hackdorte@19296 | 23 compile_rules() |
hackdorte@19296 | 24 { |
hackdorte@19296 | 25 |
hackdorte@19298 | 26 cd $src |
hackdorte@19298 | 27 cmake . |
hackdorte@19296 | 28 make |
pascal@19301 | 29 ./AstroMenace --pack --rawdata=./RAW_VFS_DATA |
hackdorte@19296 | 30 } |
hackdorte@19296 | 31 |
hackdorte@19296 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
hackdorte@19296 | 33 genpkg_rules() |
hackdorte@19296 | 34 { |
hackdorte@19296 | 35 |
hackdorte@19296 | 36 GAME="AstroMenace" |
hackdorte@19296 | 37 GAME_DIR="usr/games/$GAME" |
hackdorte@19296 | 38 |
hackdorte@19296 | 39 mkdir -p $install/$GAME_DIR |
hackdorte@19296 | 40 |
hackdorte@19296 | 41 chmod +x $src/$GAME |
hackdorte@19296 | 42 |
hackdorte@19296 | 43 cp -a $src/$GAME $install/$GAME_DIR |
hackdorte@19296 | 44 cp -a $src/astromenace_64.png $install/$GAME_DIR |
hackdorte@19296 | 45 cp -a $src/astromenace_128.png $install/$GAME_DIR |
hackdorte@19296 | 46 cp -a $src/ChangeLog.txt $install/$GAME_DIR |
hackdorte@19296 | 47 cp -a $src/gamedata.vfs $install/$GAME_DIR |
hackdorte@19296 | 48 cp -a $src/gpl-3.0.txt $install/$GAME_DIR |
hackdorte@19296 | 49 |
hackdorte@19296 | 50 mkdir -p $install/usr/share/pixmaps |
hackdorte@19296 | 51 cp -a $src/astromenace_64.png $install/usr/share/pixmaps/astromenace.png |
hackdorte@19296 | 52 |
hackdorte@19296 | 53 mkdir -p $install/usr/share/applications |
hackdorte@19296 | 54 cat > $install/usr/share/applications/astromenace.desktop << EOT |
hackdorte@19296 | 55 [Desktop Entry] |
hackdorte@19296 | 56 Type=Application |
hackdorte@19296 | 57 Name=$GAME |
hackdorte@19296 | 58 Exec=/$GAME_DIR/$GAME |
hackdorte@19296 | 59 Icon=$PACKAGE |
hackdorte@19296 | 60 Terminal=false |
hackdorte@19296 | 61 X-MultipleArgs=false |
hackdorte@19296 | 62 StartupNotify=false |
hackdorte@19296 | 63 Categories=Game;ActionGame; |
hackdorte@19296 | 64 |
hackdorte@19296 | 65 EOT |
hackdorte@19296 | 66 |
hackdorte@19296 | 67 cp -a $install/* $fs |
hackdorte@19296 | 68 |
hackdorte@19296 | 69 } |