wok-6.x view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="minetest"
4 VERSION="0.4.12"
5 CATEGORY="games"
6 SHORT_DESC="An InfiniMiner/Minecraft inspired game."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://minetest.net/"
11 WGET_URL="https://github.com/minetest/minetest/archive/$VERSION.tar.gz"
12 TARBALL2="minetest_game-$VERSION.tar.gz"
13 WGET_URL2="https://github.com/minetest/minetest_game/archive/$VERSION.tar.gz"
15 DEPENDS="libssl libpng jpeg sqlite libvorbis openal libglu-mesa curl \
16 mesa irrlicht"
17 BUILD_DEPENDS="wget cmake libpng-dev jpeg-dev sqlite-dev libogg-dev \
18 libvorbis-dev openal-dev freetype-dev xorg-libXxf86vm-dev libglu-mesa-dev \
19 curl-dev mesa-dev irrlicht-dev"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 [ -s "$SOURCES_REPOSITORY/$TARBALL2" ] || wget --no-check-certificate \
25 -O "$SOURCES_REPOSITORY/$TARBALL2" $WGET_URL2
26 cd games/
27 tar xf $SOURCES_REPOSITORY/$TARBALL2
28 cd ..
29 cmake -DCMAKE_INSTALL_PREFIX=/usr .
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $install/* $fs/
38 }