wok view minetest/receipt @ rev 25773

cookutils: fix svg compressor
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 13 16:25:52 2024 +0000 (2 months ago)
parents 5ea0ce1cecc0
children
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 # What is the latest version available today?
25 current_version()
26 {
27 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
28 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 # As gcc-4.6.3 is insufficient, the most recent version of gcc
35 # available in the cooking repository is used
36 export CC=gcc-83
37 export CXX=g++-83
39 [ -s "$SOURCES_REPOSITORY/$TARBALL2" ] || wget --no-check-certificate \
40 -O "$SOURCES_REPOSITORY/$TARBALL2" ${EXTRA_SOURCE_FILES}
41 {
42 cd games/
43 tar xf $SOURCES_REPOSITORY/$TARBALL2
44 cd ..
45 }
46 cd build &&
47 cmake \
48 -DCMAKE_INSTALL_PREFIX=/usr \
49 -DBUILD_CLIENT=TRUE \
50 -DBUILD_SERVER=TRUE \
51 -DENABLE_SPATIAL=TRUE \
52 -DENABLE_GETTEXT=TRUE \
53 -DVERSION_EXTRA="SliTaz" \
54 .. &&
55 make &&
56 make install
57 }
59 # Rules to gen a SliTaz package suitable for Tazpkg.
60 genpkg_rules()
61 {
62 mkdir -p ${fs}/usr/bin
63 mkdir -p ${fs}/usr/share
65 cp -a ${install}/usr/bin/${PACKAGE} ${fs}/usr/bin
66 cp -a ${install}/usr/share/icons $fs/usr/share
67 }
69 # Pre and post install commands for Tazpkg.
70 post_install()
71 {
72 case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in
73 *\ snd-pcm-oss\ *) ;;
74 *) sed -i 's|LOAD_MODULES="|&snd-pcm-oss |' $1/etc/rcS.conf
75 modprobe snd-pcm-oss;;
76 esac
77 }