wok annotate minetest/receipt @ rev 20826

updated dialog (1.3-20160424 -> 1.3_20190211)
author Hans-G?nter Theisgen
date Tue Feb 19 16:56:17 2019 +0100 (2019-02-19)
parents da0865241df4
children 223e4ee94f57
rev   line source
pascal@17696 1 # SliTaz package receipt.
pascal@17696 2
pascal@17696 3 PACKAGE="minetest"
pankso@19862 4 VERSION="0.4.15"
pascal@17696 5 CATEGORY="games"
pascal@17696 6 SHORT_DESC="An InfiniMiner/Minecraft inspired game."
pascal@17696 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17696 8 LICENSE="MIT"
pascal@17696 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@17696 10 WEB_SITE="http://minetest.net/"
pankso@19862 11
pascal@17696 12 WGET_URL="https://github.com/minetest/minetest/archive/$VERSION.tar.gz"
pascal@17696 13 TARBALL2="minetest_game-$VERSION.tar.gz"
pascal@17696 14 WGET_URL2="https://github.com/minetest/minetest_game/archive/$VERSION.tar.gz"
pascal@17697 15 EXTRA_SOURCE_FILES="$WGET_URL2"
pascal@17696 16
pankso@19862 17 DEPENDS="minetest-common libssl libpng jpeg sqlite libvorbis openal \
pankso@19862 18 libglu-mesa curl mesa irrlicht luajit libspatialindex"
pascal@17696 19 BUILD_DEPENDS="wget cmake libpng-dev jpeg-dev sqlite-dev libogg-dev \
pascal@17696 20 libvorbis-dev openal-dev freetype-dev xorg-libXxf86vm-dev libglu-mesa-dev \
pankso@19862 21 curl-dev mesa-dev irrlicht-dev luajit-dev libspatialindex-dev"
pascal@17696 22
pascal@17696 23 # Rules to configure and make the package.
pascal@17696 24 compile_rules()
pascal@17696 25 {
pascal@17696 26 [ -s "$SOURCES_REPOSITORY/$TARBALL2" ] || wget --no-check-certificate \
pankso@19862 27 -O "$SOURCES_REPOSITORY/$TARBALL2" ${EXTRA_SOURCE_FILES}
pankso@19862 28 {
pankso@19862 29 cd games/
pankso@19862 30 tar xf $SOURCES_REPOSITORY/$TARBALL2
pankso@19862 31 cd ..
pankso@19862 32 }
pankso@19862 33 cd build && cmake \
pankso@19862 34 -DCMAKE_INSTALL_PREFIX=/usr \
pankso@19862 35 -DBUILD_CLIENT=TRUE \
pankso@19862 36 -DBUILD_SERVER=TRUE \
pankso@19862 37 -DENABLE_SPATIAL=TRUE \
pankso@19862 38 -DENABLE_GETTEXT=TRUE \
pankso@19862 39 -DVERSION_EXTRA="SliTaz" \
pankso@19862 40 ..
pankso@19862 41 make && make install
pascal@17696 42 }
pascal@17696 43
pascal@17696 44 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17696 45 genpkg_rules()
pascal@17696 46 {
pankso@19862 47 mkdir -p ${fs}/usr/bin ${fs}/usr/share
pankso@19862 48 cp -a ${install}/usr/bin/${PACKAGE} ${fs}/usr/bin
pankso@19862 49 cp -a ${install}/usr/share/icons $fs/usr/share
pascal@17696 50 }