wok-current annotate minetest/receipt @ rev 17696
Add minetest
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 24 11:22:31 2015 +0100 (2015-02-24) |
parents | |
children | da0865241df4 |
rev | line source |
---|---|
pascal@17696 | 1 # SliTaz package receipt. |
pascal@17696 | 2 |
pascal@17696 | 3 PACKAGE="minetest" |
pascal@17696 | 4 VERSION="0.4.12" |
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/" |
pascal@17696 | 11 WGET_URL="https://github.com/minetest/minetest/archive/$VERSION.tar.gz" |
pascal@17696 | 12 TARBALL2="minetest_game-$VERSION.tar.gz" |
pascal@17696 | 13 WGET_URL2="https://github.com/minetest/minetest_game/archive/$VERSION.tar.gz" |
pascal@17696 | 14 |
pascal@17696 | 15 DEPENDS="libssl libpng jpeg sqlite libvorbis openal libglu-mesa curl \ |
pascal@17696 | 16 mesa irrlicht" |
pascal@17696 | 17 BUILD_DEPENDS="wget cmake libpng-dev jpeg-dev sqlite-dev libogg-dev \ |
pascal@17696 | 18 libvorbis-dev openal-dev freetype-dev xorg-libXxf86vm-dev libglu-mesa-dev \ |
pascal@17696 | 19 curl-dev mesa-dev irrlicht-dev" |
pascal@17696 | 20 |
pascal@17696 | 21 # Rules to configure and make the package. |
pascal@17696 | 22 compile_rules() |
pascal@17696 | 23 { |
pascal@17696 | 24 [ -s "$SOURCES_REPOSITORY/$TARBALL2" ] || wget --no-check-certificate \ |
pascal@17696 | 25 -O "$SOURCES_REPOSITORY/$TARBALL2" $WGET_URL2 |
pascal@17696 | 26 cd games/ |
pascal@17696 | 27 tar xf $SOURCES_REPOSITORY/$TARBALL2 |
pascal@17696 | 28 cd .. |
pascal@17696 | 29 cmake -DCMAKE_INSTALL_PREFIX=/usr . |
pascal@17696 | 30 make && |
pascal@17696 | 31 make DESTDIR=$DESTDIR install |
pascal@17696 | 32 } |
pascal@17696 | 33 |
pascal@17696 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17696 | 35 genpkg_rules() |
pascal@17696 | 36 { |
pascal@17696 | 37 cp -a $install/* $fs/ |
pascal@17696 | 38 } |