wok-next view minetest/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 5ffe59e2de3a
children
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="https://www.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 libx11-dev libxext-dev \
22 libice-dev libsm-dev freetype-dev ncurses-dev sqlite3-dev mesa-dev \
23 glu-dev libjpeg-turbo-dev bzip2-dev zlib-dev libpng-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 libx11 zlib"
51 ;;
52 *-data)
53 copy @std @rm
54 CAT="games|data files"
55 DEPENDS=" "
56 ;;
57 esac
58 }