wok-6.x view minetest/receipt @ rev 23573

updated python-urwid (1.3.0 -> 2.1.0)
author Hans-G?nter Theisgen
date Tue Apr 07 11:02:06 2020 +0100 (2020-04-07)
parents 1a95dca96d7f
children 5ea0ce1cecc0
line source
1 # SliTaz package receipt.
3 PACKAGE="minetest"
4 VERSION="5.1.1"
5 CATEGORY="games"
6 SHORT_DESC="An open source voxel game engine and game."
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/$PACKAGE/$PACKAGE/archive/$VERSION.tar.gz"
13 TARBALL2="${PACKAGE}_game-$VERSION.tar.gz"
14 WGET_URL2="https://github.com/$PACKAGE/${PACKAGE}_game/archive/$VERSION.tar.gz"
15 EXTRA_SOURCE_FILES="$WGET_URL2"
17 DEPENDS="curl irrlicht jpeg libglu-mesa libpng libspatialindex libssl \
18 libvorbis luajit mesa minetest-common openal sqlite"
19 BUILD_DEPENDS="cmake curl-dev freetype-dev gcc83 irrlicht-dev jpeg-dev \
20 libglu-mesa-dev libogg-dev libpng-dev libspatialindex-dev \
21 libvorbis-dev luajit-dev mesa-dev openal-dev sqlite-dev \
22 xorg-libXxf86vm-dev"
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # As gcc-4.6.3 is insufficient, the most recent version of gcc
28 # available in the cooking repository is used
29 export CC=gcc-83
30 export CXX=g++-83
32 [ -s "$SOURCES_REPOSITORY/$TARBALL2" ] || wget --no-check-certificate \
33 -O "$SOURCES_REPOSITORY/$TARBALL2" ${EXTRA_SOURCE_FILES}
34 {
35 cd games/
36 tar xf $SOURCES_REPOSITORY/$TARBALL2
37 cd ..
38 }
39 cd build &&
40 cmake \
41 -DCMAKE_INSTALL_PREFIX=/usr \
42 -DBUILD_CLIENT=TRUE \
43 -DBUILD_SERVER=TRUE \
44 -DENABLE_SPATIAL=TRUE \
45 -DENABLE_GETTEXT=TRUE \
46 -DVERSION_EXTRA="SliTaz" \
47 .. &&
48 make &&
49 make install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p ${fs}/usr/bin
56 mkdir -p ${fs}/usr/share
58 cp -a ${install}/usr/bin/${PACKAGE} ${fs}/usr/bin
59 cp -a ${install}/usr/share/icons $fs/usr/share
60 }
62 # Pre and post install commands for Tazpkg.
63 post_install()
64 {
65 case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in
66 *\ snd-pcm-oss\ *) ;;
67 *) sed -i 's|LOAD_MODULES="|&snd-pcm-oss |' $1/etc/rcS.conf
68 modprobe snd-pcm-oss;;
69 esac
70 }