wok annotate astromenace/receipt @ rev 22650
updated djview again (4.10.3 -> 4.10.6)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jan 14 13:47:35 2020 +0100 (2020-01-14) |
parents | bf7c6f0f2896 |
children | a4a9b130531d |
rev | line source |
---|---|
hackdorte@19296 | 1 # SliTaz package receipt. |
hackdorte@19296 | 2 |
hackdorte@19296 | 3 PACKAGE="astromenace" |
Hans-G?nter@22508 | 4 VERSION="1.4.1" |
hackdorte@19296 | 5 CATEGORY="games" |
Hans-G?nter@22508 | 6 TAGS="arcade game shooting space" |
hackdorte@19296 | 7 SHORT_DESC="Hardcore 3D space shooter with spaceship upgrade possibilities." |
hackdorte@20008 | 8 MAINTAINER="hackdorte@yandex.com" |
hackdorte@20008 | 9 LICENSE="GPLv3" |
Hans-G?nter@22508 | 10 WEB_SITE="https://viewizard.com/" |
hackdorte@19296 | 11 |
Hans-G?nter@22508 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22508 | 13 WGET_URL="https://github.com/viewizard/$PACKAGE/archive/v$VERSION.tar.gz" |
hackdorte@19296 | 14 |
Hans-G?nter@22508 | 15 DEPENDS="freealut freetype gcc83-lib-base libogg libglu-mesa libsdl2 |
Hans-G?nter@22508 | 16 libvorbis openal xorg-libXinerama" |
Hans-G?nter@22508 | 17 BUILD_DEPENDS="cmake freealut-dev freetype-dev gcc83 libglu-mesa-dev |
Hans-G?nter@22510 | 18 libogg-dev libsdl2-dev libvorbis-dev mesa-dev openal-dev |
Hans-G?nter@22508 | 19 xorg-libXinerama-dev" |
hackdorte@19296 | 20 |
hackdorte@19296 | 21 # Rules to configure and make the package. |
hackdorte@19296 | 22 compile_rules() |
hackdorte@19296 | 23 { |
Hans-G?nter@22508 | 24 export CC=gcc-83 |
Hans-G?nter@22508 | 25 export CXX=g++-83 |
hackdorte@19296 | 26 |
Hans-G?nter@22508 | 27 cmake . \ |
Hans-G?nter@22508 | 28 -DCMAKE_BUILD_TYPE=Release && |
Hans-G?nter@22508 | 29 make |
Hans-G?nter@22508 | 30 # ./AstroMenace --pack --rawdata=./RAW_VFS_DATA |
hackdorte@19296 | 31 } |
hackdorte@19296 | 32 |
hackdorte@19296 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
hackdorte@19296 | 34 genpkg_rules() |
hackdorte@19296 | 35 { |
Hans-G?nter@22508 | 36 GAME="astromenace" |
Hans-G?nter@22508 | 37 GAME_DIR="usr/games/$GAME" |
hackdorte@19296 | 38 |
Hans-G?nter@22508 | 39 mkdir -p $install/$GAME_DIR |
Hans-G?nter@22508 | 40 chmod +x $src/$GAME |
hackdorte@19296 | 41 |
Hans-G?nter@22508 | 42 cp -a $src/$GAME $install/$GAME_DIR |
Hans-G?nter@22508 | 43 cp -a $src/share/astromenace_64.png $install/$GAME_DIR |
Hans-G?nter@22508 | 44 cp -a $src/share/astromenace_128.png $install/$GAME_DIR |
Hans-G?nter@22508 | 45 cp -a $src/CHANGELOG.md $install/$GAME_DIR |
Hans-G?nter@22508 | 46 cp -a $src/gamedata.vfs $install/$GAME_DIR |
Hans-G?nter@22508 | 47 # cp -a $src/gpl-3.0.txt $install/$GAME_DIR |
hackdorte@19296 | 48 |
Hans-G?nter@22508 | 49 mkdir -p $install/usr/share/pixmaps |
Hans-G?nter@22508 | 50 cp -a $src/share/astromenace_64.png $install/usr/share/pixmaps/astromenace.png |
hackdorte@19296 | 51 |
Hans-G?nter@22508 | 52 mkdir -p $install/usr/share/applications |
hackdorte@19296 | 53 cat > $install/usr/share/applications/astromenace.desktop << EOT |
hackdorte@19296 | 54 [Desktop Entry] |
hackdorte@19296 | 55 Type=Application |
hackdorte@19296 | 56 Name=$GAME |
hackdorte@19296 | 57 Exec=/$GAME_DIR/$GAME |
hackdorte@19296 | 58 Icon=$PACKAGE |
hackdorte@19296 | 59 Terminal=false |
hackdorte@19296 | 60 X-MultipleArgs=false |
hackdorte@19296 | 61 StartupNotify=false |
hackdorte@19296 | 62 Categories=Game;ActionGame; |
hackdorte@19296 | 63 |
hackdorte@19296 | 64 EOT |
hackdorte@19296 | 65 |
Hans-G?nter@22508 | 66 cp -a $install/* $fs |
hackdorte@19296 | 67 |
hackdorte@19296 | 68 } |