wok-next diff supertux/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents a244e109372e
children 0f2575775b2d
line diff
     1.1 --- a/supertux/receipt	Tue Aug 21 00:41:54 2018 +0300
     1.2 +++ b/supertux/receipt	Fri Nov 02 14:15:08 2018 +0200
     1.3 @@ -3,43 +3,42 @@
     1.4  PACKAGE="supertux"
     1.5  VERSION="0.3.3"
     1.6  CATEGORY="games"
     1.7 -SHORT_DESC="SuperTux is a classic 2D jump'n run sidescroller game in a style similar to the original SuperMario games."
     1.8 -MAINTAINER="mallory@sweetpeople.org"
     1.9 +SHORT_DESC="Classic 2D jump'n run sidescroller game similar to SuperMario games"
    1.10 +MAINTAINER="devel@slitaz.org"
    1.11  LICENSE="GPL3"
    1.12 -SUGGESTED="nvidia"
    1.13 +WEB_SITE="http://supertux.lethargik.org/"
    1.14 +
    1.15  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.16 -WEB_SITE="http://supertux.lethargik.org/"
    1.17  WGET_URL="http://supertux.googlecode.com/files/$TARBALL"
    1.18  
    1.19  BUILD_DEPENDS="libsdl-dev libsdl-image-dev libsdl-mixer-dev curl-dev \
    1.20  physfs-dev openal-dev mesa-dev glew-dev cmake boost-dev libvorbis-dev"
    1.21 -SPLIT="supertux-data"
    1.22 +SPLIT="$PACKAGE-data"
    1.23  
    1.24 -# Rules to configure and make the package.
    1.25 -compile_rules()
    1.26 -{
    1.27 +compile_rules() {
    1.28  	cp $stuff/menu.h src
    1.29  	sed -i 's|#  include <curl/types.h>||g' src/addon/addon_manager.cpp
    1.30  	sed -i '1i#include <cstddef>' src/supertux/screen_manager.hpp
    1.31 -	cmake -D CMAKE_INSTALL_PREFIX=/usr -D INSTALL_SUBDIR_BIN=bin .
    1.32 -	make && make DESTDIR=$DESTDIR install
    1.33 +
    1.34 +	cmake \
    1.35 +		-DCMAKE_INSTALL_PREFIX=/usr \
    1.36 +		-DINSTALL_SUBDIR_BIN=bin \
    1.37 +		. &&
    1.38 +	make &&
    1.39 +	make DESTDIR=$install install
    1.40  }
    1.41  
    1.42 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.43 -genpkg_rules()
    1.44 -{
    1.45 +genpkg_rules() {
    1.46  	case $PACKAGE in
    1.47 -	supertux)
    1.48 -		DEPENDS="libsdl libsdl-image libsdl-mixer curl physfs openal \
    1.49 +		supertux)
    1.50 +			copy bin/
    1.51 +			DEPENDS="libsdl libsdl-image libsdl-mixer curl physfs openal \
    1.52  			mesa glew supertux-data"
    1.53 -		mkdir -p $fs/usr
    1.54 -		cp -a $install/usr/bin $fs/usr
    1.55 -		;;
    1.56 -	supertux-data)
    1.57 -		CAT="games|data files"
    1.58 -		echo Copying data...
    1.59 -		mkdir -p $fs/usr/share
    1.60 -		cp -a $install/usr/share/games $fs/usr/share
    1.61 -		;;
    1.62 +			SUGGESTED="nvidia"
    1.63 +			;;
    1.64 +		*-data)
    1.65 +			copy games/
    1.66 +			CAT="games|data files"
    1.67 +			;;
    1.68  	esac
    1.69  }