wok-current view minetest/receipt @ rev 20644
Add libsixel
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 11 16:32:25 2019 +0100 (2019-01-11) |
parents | da0865241df4 |
children | 223e4ee94f57 |
line source
1 # SliTaz package receipt.
3 PACKAGE="minetest"
4 VERSION="0.4.15"
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/"
12 WGET_URL="https://github.com/minetest/minetest/archive/$VERSION.tar.gz"
13 TARBALL2="minetest_game-$VERSION.tar.gz"
14 WGET_URL2="https://github.com/minetest/minetest_game/archive/$VERSION.tar.gz"
15 EXTRA_SOURCE_FILES="$WGET_URL2"
17 DEPENDS="minetest-common libssl libpng jpeg sqlite libvorbis openal \
18 libglu-mesa curl mesa irrlicht luajit libspatialindex"
19 BUILD_DEPENDS="wget cmake libpng-dev jpeg-dev sqlite-dev libogg-dev \
20 libvorbis-dev openal-dev freetype-dev xorg-libXxf86vm-dev libglu-mesa-dev \
21 curl-dev mesa-dev irrlicht-dev luajit-dev libspatialindex-dev"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 [ -s "$SOURCES_REPOSITORY/$TARBALL2" ] || wget --no-check-certificate \
27 -O "$SOURCES_REPOSITORY/$TARBALL2" ${EXTRA_SOURCE_FILES}
28 {
29 cd games/
30 tar xf $SOURCES_REPOSITORY/$TARBALL2
31 cd ..
32 }
33 cd build && cmake \
34 -DCMAKE_INSTALL_PREFIX=/usr \
35 -DBUILD_CLIENT=TRUE \
36 -DBUILD_SERVER=TRUE \
37 -DENABLE_SPATIAL=TRUE \
38 -DENABLE_GETTEXT=TRUE \
39 -DVERSION_EXTRA="SliTaz" \
40 ..
41 make && make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p ${fs}/usr/bin ${fs}/usr/share
48 cp -a ${install}/usr/bin/${PACKAGE} ${fs}/usr/bin
49 cp -a ${install}/usr/share/icons $fs/usr/share
50 }