wok-next diff astromenace/receipt @ rev 20626
librevenge: fix build for new toolchain
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Apr 26 13:06:21 2018 +0300 (2018-04-26) |
parents | c0521c689857 |
children | b156aee559a7 |
line diff
1.1 --- a/astromenace/receipt Fri Mar 16 00:27:34 2018 +0200 1.2 +++ b/astromenace/receipt Thu Apr 26 13:06:21 2018 +0300 1.3 @@ -1,69 +1,38 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="astromenace" 1.8 VERSION="1.3.2" 1.9 CATEGORY="games" 1.10 -SHORT_DESC="Hardcore 3D space shooter with spaceship upgrade possibilities." 1.11 +SHORT_DESC="Hardcore 3D space shooter with spaceship upgrade possibilities" 1.12 MAINTAINER="hackdorte@sapo.pt" 1.13 LICENSE="GPL3" 1.14 +WEB_SITE="http://viewizard.com/astromenace/index_linux.php" 1.15 + 1.16 TARBALL="$PACKAGE-src-$VERSION.tar.bz2" 1.17 - 1.18 -WEB_SITE="http://viewizard.com/astromenace/index_linux.php" 1.19 WGET_URL="$SF_MIRROR/openastromenace/$TARBALL" 1.20 1.21 -TAGS="arcade game shooting space" 1.22 +BUILD_DEPENDS="gcc cmake make libsdl-dev libogg-dev libvorbis-dev glu-dev \ 1.23 +openal-dev freealut-dev xorg-libXinerama-dev freetype-dev mesa-dev \ 1.24 +fontconfig-dev" 1.25 1.26 -DEPENDS="cmake libsdl libogg libvorbis glu openal freealut \ 1.27 -xorg-libXinerama freetype" 1.28 +compile_rules() { 1.29 + cmake . && 1.30 + make && 1.31 + ./AstroMenace --pack --rawdata=./RAW_VFS_DATA || return 1 1.32 1.33 -BUILD_DEPENDS="gcc cmake make libsdl-dev libogg-dev libvorbis-dev glu-dev \ 1.34 -openal-dev freealut-dev xorg-libXinerama-dev freetype-dev mesa-dev" 1.35 + chmod +x AstroMenace 1.36 1.37 -# Rules to configure and make the package. 1.38 -compile_rules() 1.39 -{ 1.40 + mkdir -p $install/usr/games/AstroMenace/ 1.41 + cp AstroMenace astromenace_64.png astromenace_128.png ChangeLog.txt \ 1.42 + gamedata.vfs gpl-3.0.txt $install/usr/games/AstroMenace/ 1.43 1.44 -cd $src 1.45 -cmake . 1.46 -make 1.47 -./AstroMenace --pack --rawdata=./RAW_VFS_DATA 1.48 + mkdir -p $install/usr/share/pixmaps/ 1.49 + cp astromenace_64.png $install/usr/share/pixmaps/astromenace.png 1.50 } 1.51 1.52 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.53 -genpkg_rules() 1.54 -{ 1.55 - 1.56 -GAME="AstroMenace" 1.57 -GAME_DIR="usr/games/$GAME" 1.58 - 1.59 -mkdir -p $install/$GAME_DIR 1.60 - 1.61 -chmod +x $src/$GAME 1.62 - 1.63 -cp -a $src/$GAME $install/$GAME_DIR 1.64 -cp -a $src/astromenace_64.png $install/$GAME_DIR 1.65 -cp -a $src/astromenace_128.png $install/$GAME_DIR 1.66 -cp -a $src/ChangeLog.txt $install/$GAME_DIR 1.67 -cp -a $src/gamedata.vfs $install/$GAME_DIR 1.68 -cp -a $src/gpl-3.0.txt $install/$GAME_DIR 1.69 - 1.70 -mkdir -p $install/usr/share/pixmaps 1.71 -cp -a $src/astromenace_64.png $install/usr/share/pixmaps/astromenace.png 1.72 - 1.73 -mkdir -p $install/usr/share/applications 1.74 -cat > $install/usr/share/applications/astromenace.desktop << EOT 1.75 -[Desktop Entry] 1.76 -Type=Application 1.77 -Name=$GAME 1.78 -Exec=/$GAME_DIR/$GAME 1.79 -Icon=$PACKAGE 1.80 -Terminal=false 1.81 -X-MultipleArgs=false 1.82 -StartupNotify=false 1.83 -Categories=Game;ActionGame; 1.84 - 1.85 -EOT 1.86 - 1.87 -cp -a $install/* $fs 1.88 - 1.89 +genpkg_rules() { 1.90 + copy @std 1.91 + TAGS="arcade game shooting space" 1.92 + DEPENDS="cmake libsdl libogg libvorbis glu openal freealut \ 1.93 + xorg-libXinerama freetype" 1.94 }