wok-current rev 22508

updated astromenace (1.3.2 -> 1.4.1)
author Hans-G?nter Theisgen
date Wed Jan 01 15:09:58 2020 +0100 (2020-01-01)
parents 1ff9ee98b416
children 2823af183fef
files astromenace/receipt
line diff
     1.1 --- a/astromenace/receipt	Wed Jan 01 13:38:34 2020 +0100
     1.2 +++ b/astromenace/receipt	Wed Jan 01 15:09:58 2020 +0100
     1.3 @@ -1,56 +1,55 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="astromenace"
     1.7 -VERSION="1.3.2"
     1.8 +VERSION="1.4.1"
     1.9  CATEGORY="games"
    1.10 +TAGS="arcade game shooting space"
    1.11  SHORT_DESC="Hardcore 3D space shooter with spaceship upgrade possibilities."
    1.12  MAINTAINER="hackdorte@yandex.com"
    1.13  LICENSE="GPLv3"
    1.14 -TARBALL="$PACKAGE-src-$VERSION.tar.bz2"
    1.15 +WEB_SITE="https://viewizard.com/"
    1.16  
    1.17 -WEB_SITE="https://viewizard.com/"
    1.18 -WGET_URL="$SF_MIRROR/openastromenace/$TARBALL"
    1.19 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.20 +WGET_URL="https://github.com/viewizard/$PACKAGE/archive/v$VERSION.tar.gz"
    1.21  
    1.22 -TAGS="arcade game shooting space"
    1.23 -
    1.24 -DEPENDS="cmake libsdl libogg libvorbis libglu-mesa openal freealut \
    1.25 -xorg-libXinerama freetype"
    1.26 -
    1.27 -BUILD_DEPENDS="gcc cmake make libsdl-dev libogg-dev libvorbis-dev libglu-mesa-dev \
    1.28 -openal-dev freealut-dev xorg-libXinerama-dev freetype-dev mesa-dev"
    1.29 +DEPENDS="freealut freetype gcc83-lib-base libogg libglu-mesa libsdl2 
    1.30 +	libvorbis openal xorg-libXinerama"
    1.31 +BUILD_DEPENDS="cmake freealut-dev freetype-dev gcc83 libglu-mesa-dev 
    1.32 +	libogg-dev libsdl-dev libvorbis-dev mesa-dev openal-dev 
    1.33 +	xorg-libXinerama-dev"
    1.34  
    1.35  # Rules to configure and make the package.
    1.36  compile_rules()
    1.37  {
    1.38 +	export	CC=gcc-83
    1.39 +	export	CXX=g++-83
    1.40  
    1.41 -cd $src
    1.42 -cmake .
    1.43 -make
    1.44 -./AstroMenace --pack --rawdata=./RAW_VFS_DATA
    1.45 +	cmake	.	\
    1.46 +		-DCMAKE_BUILD_TYPE=Release &&
    1.47 +	make
    1.48 +#	./AstroMenace --pack --rawdata=./RAW_VFS_DATA
    1.49  }
    1.50  
    1.51  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.52  genpkg_rules()
    1.53  {
    1.54 +	GAME="astromenace"
    1.55 +	GAME_DIR="usr/games/$GAME"
    1.56  
    1.57 -GAME="AstroMenace"
    1.58 -GAME_DIR="usr/games/$GAME"
    1.59 +	mkdir -p $install/$GAME_DIR
    1.60 +	chmod +x $src/$GAME
    1.61  
    1.62 -mkdir -p $install/$GAME_DIR
    1.63 +	cp -a $src/$GAME			$install/$GAME_DIR
    1.64 +	cp -a $src/share/astromenace_64.png	$install/$GAME_DIR
    1.65 +	cp -a $src/share/astromenace_128.png	$install/$GAME_DIR
    1.66 +	cp -a $src/CHANGELOG.md			$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 -chmod +x $src/$GAME
    1.71 +	mkdir -p $install/usr/share/pixmaps
    1.72 +	cp -a $src/share/astromenace_64.png	$install/usr/share/pixmaps/astromenace.png
    1.73  
    1.74 -cp -a $src/$GAME $install/$GAME_DIR
    1.75 -cp -a $src/astromenace_64.png $install/$GAME_DIR
    1.76 -cp -a $src/astromenace_128.png $install/$GAME_DIR
    1.77 -cp -a $src/ChangeLog.txt $install/$GAME_DIR
    1.78 -cp -a $src/gamedata.vfs $install/$GAME_DIR
    1.79 -cp -a $src/gpl-3.0.txt $install/$GAME_DIR
    1.80 -
    1.81 -mkdir -p $install/usr/share/pixmaps
    1.82 -cp -a $src/astromenace_64.png $install/usr/share/pixmaps/astromenace.png
    1.83 -
    1.84 -mkdir -p $install/usr/share/applications
    1.85 +	mkdir -p $install/usr/share/applications
    1.86  cat > $install/usr/share/applications/astromenace.desktop << EOT
    1.87  [Desktop Entry]
    1.88  Type=Application
    1.89 @@ -64,6 +63,6 @@
    1.90  
    1.91  EOT
    1.92  
    1.93 -cp -a $install/* $fs
    1.94 +	cp -a $install/*	$fs
    1.95  
    1.96  }