wok-next diff minetest/receipt @ rev 20976

Follow recent changes in the Python renames
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Sep 25 17:35:51 2018 +0300 (2018-09-25)
parents 6477d7f70481
children d5aab818505e
line diff
     1.1 --- a/minetest/receipt	Wed Mar 21 16:15:19 2018 +0200
     1.2 +++ b/minetest/receipt	Tue Sep 25 17:35:51 2018 +0300
     1.3 @@ -1,40 +1,58 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="minetest"
     1.8 -VERSION="0.4.16"
     1.9 +VERSION="0.4.17.1"
    1.10  CATEGORY="games"
    1.11 -SHORT_DESC="An InfiniMiner/Minecraft inspired game."
    1.12 +SHORT_DESC="Multiplayer infinite-world block sandbox"
    1.13  MAINTAINER="pascal.bellard@slitaz.org"
    1.14  LICENSE="MIT"
    1.15 +WEB_SITE="http://minetest.net/"
    1.16 +
    1.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.18 -WEB_SITE="http://minetest.net/"
    1.19  WGET_URL="https://github.com/minetest/minetest/archive/$VERSION.tar.gz"
    1.20 -TARBALL2="minetest_game-$VERSION.tar.gz"
    1.21 -WGET_URL2="https://github.com/minetest/minetest_game/archive/$VERSION.tar.gz"
    1.22 +
    1.23 +VERSION2="0.4.17"
    1.24 +TARBALL2="minetest_game-$VERSION2.tar.gz"
    1.25 +WGET_URL2="https://github.com/minetest/minetest_game/archive/$VERSION2.tar.gz"
    1.26 +
    1.27  EXTRA_SOURCE_FILES="$WGET_URL2"
    1.28  
    1.29 -DEPENDS="openssl libpng16 jpeg sqlite3 libvorbis openal glu curl \
    1.30 -mesa irrlicht"
    1.31 -BUILD_DEPENDS="cmake libpng16-dev jpeg-dev sqlite3-dev libogg-dev \
    1.32 -libvorbis-dev openal-dev freetype-dev xorg-libXxf86vm-dev glu-dev \
    1.33 -curl-dev mesa-dev irrlicht-dev"
    1.34 +BUILD_DEPENDS="cmake irrlicht-dev gmp-dev jsoncpp-dev luajit-dev curl-dev \
    1.35 +gettext openal-dev libvorbis-dev xorg-libX11-dev xorg-libXext-dev \
    1.36 +xorg-libICE-dev xorg-libSM-dev freetype-dev ncurses-dev sqlite3-dev mesa-dev \
    1.37 +glu-dev libjpeg-turbo-dev bzip2-dev zlib-dev libpng16-dev doxygen graphviz"
    1.38 +SPLIT="$PACKAGE-data"
    1.39  
    1.40 -# Rules to configure and make the package.
    1.41 -compile_rules()
    1.42 -{
    1.43 -	fix math
    1.44 -	[ -s "$SRC/$TARBALL2" ] || wget --no-check-certificate \
    1.45 -		-O "$SRC/$TARBALL2" $WGET_URL2
    1.46 +compile_rules() {
    1.47 +#	fix math
    1.48 +
    1.49 +	[ -s "$SRC/$TARBALL2" ] || wget -O "$SRC/$TARBALL2" $WGET_URL2
    1.50  	cd games/
    1.51  	tar xf $SRC/$TARBALL2
    1.52 +	mv minetest_game-$VERSION2 minetest_game
    1.53  	cd ..
    1.54 -	cmake -DCMAKE_INSTALL_PREFIX=/usr . 
    1.55 +
    1.56 +	cmake \
    1.57 +		-DCMAKE_INSTALL_PREFIX=/usr \
    1.58 +		-DENABLE_GETTEXT=ON \
    1.59 +		-DENABLE_GLES=ON \
    1.60 +		-DENABLE_SYSTEM_JSONCPP=ON \
    1.61 +		. &&
    1.62  	make &&
    1.63 -	make DESTDIR=$DESTDIR install
    1.64 +	make install
    1.65  }
    1.66  
    1.67 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.68 -genpkg_rules()
    1.69 -{
    1.70 -	cp -a $install/* $fs/
    1.71 +genpkg_rules() {
    1.72 +	case $PACKAGE in
    1.73 +		minetest)
    1.74 +			copy bin/
    1.75 +			DEPENDS="minetest-data freetype gmp irrlicht jsoncpp libcurl \
    1.76 +			libsqlite3 libvorbis luajit mesa ncurses openal xorg-libX11 zlib"
    1.77 +			;;
    1.78 +		*-data)
    1.79 +			copy @std @rm
    1.80 +			CAT="games|data files"
    1.81 +			DEPENDS=" "
    1.82 +			;;
    1.83 +	esac
    1.84  }