wok-6.x rev 19862

Up minetest (0.4.15) split and improve packages + add libspatialindex to speed up minetest (great Minecraft alike game for schools)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 26 00:07:11 2017 +0100 (2017-03-26)
parents eeaaeada151a
children de17d022fe9c
files libspatialindex-dev/receipt libspatialindex/receipt minetest-common/receipt minetest-server/receipt minetest/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libspatialindex-dev/receipt	Sun Mar 26 00:07:11 2017 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="libspatialindex-dev"
     1.7 +VERSION="1.8.5"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="LibSpacial Index devel files"
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="MPL2"
    1.12 +WEB_SITE="https://libspatialindex.github.io/"
    1.13 +WANTED="libspatialindex"
    1.14 +HOST_ARCH="i486"
    1.15 +
    1.16 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.17 +genpkg_rules()
    1.18 +{
    1.19 +	mkdir -p $fs/usr/lib
    1.20 +	cp -a $install/usr/include $fs/usr
    1.21 +	cp -a $install/usr/lib/*.*a $fs/usr/lib
    1.22 +	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.23 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/libspatialindex/receipt	Sun Mar 26 00:07:11 2017 +0100
     2.3 @@ -0,0 +1,32 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="libspatialindex"
     2.7 +VERSION="1.8.5"
     2.8 +CATEGORY="system-tools"
     2.9 +SHORT_DESC="Easy importation of spatial data as well as AutoRegressive models"
    2.10 +MAINTAINER="pankso@slitaz.org"
    2.11 +LICENSE="MPL2"
    2.12 +SOURCE="spatialindex-src"
    2.13 +TARBALL="$SOURCE-$VERSION.tar.bz2"
    2.14 +WEB_SITE="https://libspatialindex.github.io/"
    2.15 +WGET_URL="http://download.osgeo.org/libspatialindex/$TARBALL"
    2.16 +HOST_ARCH="i486"
    2.17 +
    2.18 +DEPENDS=""
    2.19 +BUILD_DEPENDS=""
    2.20 +
    2.21 +# Rules to configure and make the package.
    2.22 +compile_rules()
    2.23 +{
    2.24 +	./configure \
    2.25 +		--prefix=/usr \
    2.26 +		$CONFIGURE_ARGS &&
    2.27 +	make && make install
    2.28 +}
    2.29 +
    2.30 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.31 +genpkg_rules()
    2.32 +{
    2.33 +	mkdir -p $fs/usr/lib
    2.34 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.35 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/minetest-common/receipt	Sun Mar 26 00:07:11 2017 +0100
     3.3 @@ -0,0 +1,19 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="minetest-common"
     3.7 +VERSION="0.4.15"
     3.8 +CATEGORY="games"
     3.9 +SHORT_DESC="Common files for Minetest client and server."
    3.10 +MAINTAINER="pascal.bellard@slitaz.org"
    3.11 +LICENSE="MIT"
    3.12 +WEB_SITE="http://minetest.net/"
    3.13 +WANTED="minetest"
    3.14 +
    3.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.16 +genpkg_rules()
    3.17 +{
    3.18 +	mkdir -p ${fs}/usr/share
    3.19 +	for i in minetest appdata doc; do
    3.20 +		cp -a ${install}/usr/share/${i} $fs/usr/share
    3.21 +	done
    3.22 +}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/minetest-server/receipt	Sun Mar 26 00:07:11 2017 +0100
     4.3 @@ -0,0 +1,19 @@
     4.4 +# SliTaz package receipt.
     4.5 +
     4.6 +PACKAGE="minetest-server"
     4.7 +VERSION="0.4.15"
     4.8 +CATEGORY="games"
     4.9 +SHORT_DESC="Minetest server (Multiplayer infinite-world block sandbox)."
    4.10 +MAINTAINER="pascal.bellard@slitaz.org"
    4.11 +LICENSE="MIT"
    4.12 +WEB_SITE="http://minetest.net/"
    4.13 +WANTED="minetest"
    4.14 +
    4.15 +DEPENDS="minetest-common luajit curl libssl sqlite libspatialindex"
    4.16 +
    4.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    4.18 +genpkg_rules()
    4.19 +{
    4.20 +	mkdir -p ${fs}/usr/bin
    4.21 +	cp -a ${install}/usr/bin/minetestserver ${fs}/usr/bin
    4.22 +}
     5.1 --- a/minetest/receipt	Fri Mar 24 15:04:56 2017 +0100
     5.2 +++ b/minetest/receipt	Sun Mar 26 00:07:11 2017 +0100
     5.3 @@ -1,39 +1,50 @@
     5.4  # SliTaz package receipt.
     5.5  
     5.6  PACKAGE="minetest"
     5.7 -VERSION="0.4.12"
     5.8 +VERSION="0.4.15"
     5.9  CATEGORY="games"
    5.10  SHORT_DESC="An InfiniMiner/Minecraft inspired game."
    5.11  MAINTAINER="pascal.bellard@slitaz.org"
    5.12  LICENSE="MIT"
    5.13  TARBALL="$PACKAGE-$VERSION.tar.gz"
    5.14  WEB_SITE="http://minetest.net/"
    5.15 +
    5.16  WGET_URL="https://github.com/minetest/minetest/archive/$VERSION.tar.gz"
    5.17  TARBALL2="minetest_game-$VERSION.tar.gz"
    5.18  WGET_URL2="https://github.com/minetest/minetest_game/archive/$VERSION.tar.gz"
    5.19  EXTRA_SOURCE_FILES="$WGET_URL2"
    5.20  
    5.21 -DEPENDS="libssl libpng jpeg sqlite libvorbis openal libglu-mesa curl \
    5.22 -mesa irrlicht"
    5.23 +DEPENDS="minetest-common libssl libpng jpeg sqlite libvorbis openal \
    5.24 +libglu-mesa curl mesa irrlicht luajit libspatialindex"
    5.25  BUILD_DEPENDS="wget cmake libpng-dev jpeg-dev sqlite-dev libogg-dev \
    5.26  libvorbis-dev openal-dev freetype-dev xorg-libXxf86vm-dev libglu-mesa-dev \
    5.27 -curl-dev mesa-dev irrlicht-dev"
    5.28 +curl-dev mesa-dev irrlicht-dev luajit-dev libspatialindex-dev"
    5.29  
    5.30  # Rules to configure and make the package.
    5.31  compile_rules()
    5.32  {
    5.33  	[ -s "$SOURCES_REPOSITORY/$TARBALL2" ] || wget --no-check-certificate \
    5.34 -		-O "$SOURCES_REPOSITORY/$TARBALL2" $WGET_URL2
    5.35 -	cd games/
    5.36 -	tar xf $SOURCES_REPOSITORY/$TARBALL2
    5.37 -	cd ..
    5.38 -	cmake -DCMAKE_INSTALL_PREFIX=/usr . 
    5.39 -	make &&
    5.40 -	make DESTDIR=$DESTDIR install
    5.41 +		-O "$SOURCES_REPOSITORY/$TARBALL2" ${EXTRA_SOURCE_FILES}
    5.42 +	{ 
    5.43 +		cd games/
    5.44 +		tar xf $SOURCES_REPOSITORY/$TARBALL2
    5.45 +		cd ..
    5.46 +	}
    5.47 +	cd build && cmake \
    5.48 +		-DCMAKE_INSTALL_PREFIX=/usr \
    5.49 +		-DBUILD_CLIENT=TRUE \
    5.50 +		-DBUILD_SERVER=TRUE \
    5.51 +		-DENABLE_SPATIAL=TRUE \
    5.52 +		-DENABLE_GETTEXT=TRUE \
    5.53 +		-DVERSION_EXTRA="SliTaz" \
    5.54 +		.. 
    5.55 +	make && make install
    5.56  }
    5.57  
    5.58  # Rules to gen a SliTaz package suitable for Tazpkg.
    5.59  genpkg_rules()
    5.60  {
    5.61 -	cp -a $install/* $fs/
    5.62 +	mkdir -p ${fs}/usr/bin ${fs}/usr/share
    5.63 +	cp -a ${install}/usr/bin/${PACKAGE} ${fs}/usr/bin
    5.64 +	cp -a ${install}/usr/share/icons $fs/usr/share
    5.65  }