wok-next view minetest/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 8b5b2a6d07b8
children 5ffe59e2de3a
line source
1 # SliTaz package receipt v2.
3 PACKAGE="minetest"
4 VERSION="0.4.17.1"
5 CATEGORY="games"
6 SHORT_DESC="Multiplayer infinite-world block sandbox"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://minetest.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/minetest/minetest/archive/$VERSION.tar.gz"
14 VERSION2="0.4.17"
15 TARBALL2="minetest_game-$VERSION2.tar.gz"
16 WGET_URL2="https://github.com/minetest/minetest_game/archive/$VERSION2.tar.gz"
18 EXTRA_SOURCE_FILES="$WGET_URL2"
20 BUILD_DEPENDS="cmake irrlicht-dev gmp-dev jsoncpp-dev luajit-dev curl-dev \
21 gettext-dev openal-dev libvorbis-dev xorg-libX11-dev xorg-libXext-dev \
22 xorg-libICE-dev xorg-libSM-dev freetype-dev ncurses-dev sqlite3-dev mesa-dev \
23 glu-dev libjpeg-turbo-dev bzip2-dev zlib-dev libpng16-dev doxygen graphviz"
24 SPLIT="$PACKAGE-data"
26 compile_rules() {
27 # fix math
29 [ -s "$SRC/$TARBALL2" ] || wget -O "$SRC/$TARBALL2" $WGET_URL2
30 cd games/
31 tar xf $SRC/$TARBALL2
32 mv minetest_game-$VERSION2 minetest_game
33 cd ..
35 cmake \
36 -DCMAKE_INSTALL_PREFIX=/usr \
37 -DENABLE_GETTEXT=ON \
38 -DENABLE_GLES=ON \
39 -DENABLE_SYSTEM_JSONCPP=ON \
40 . &&
41 make &&
42 make install
43 }
45 genpkg_rules() {
46 case $PACKAGE in
47 minetest)
48 copy bin/
49 DEPENDS="minetest-data freetype gmp irrlicht jsoncpp libcurl \
50 libsqlite3 libvorbis luajit mesa ncurses openal xorg-libX11 zlib"
51 ;;
52 *-data)
53 copy @std @rm
54 CAT="games|data files"
55 DEPENDS=" "
56 ;;
57 esac
58 }