wok-current annotate minetest/receipt @ rev 22053

minitest: post-install(): fix "sed: unmatched '|'" error
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 22 19:46:38 2019 +0200 (2019-10-22)
parents 37b2a1afa30e
children fa14bf00ffaa
rev   line source
pascal@17696 1 # SliTaz package receipt.
pascal@17696 2
pascal@17696 3 PACKAGE="minetest"
Hans-G?nter@21439 4 VERSION="5.0.1"
pascal@17696 5 CATEGORY="games"
Hans-G?nter@21439 6 SHORT_DESC="An open source voxel game engine and game."
pascal@17696 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17696 8 LICENSE="MIT"
pascal@21649 9 WEB_SITE="https://www.minetest.net/"
Hans-G?nter@21439 10
pascal@17696 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21439 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION.tar.gz"
pascal@21450 13 TARBALL2="${PACKAGE}_game-$VERSION.tar.gz"
pascal@21450 14 WGET_URL2="https://github.com/$PACKAGE/${PACKAGE}_game/archive/$VERSION.tar.gz"
pascal@17697 15 EXTRA_SOURCE_FILES="$WGET_URL2"
pascal@17696 16
Hans-G?nter@21439 17 DEPENDS="curl irrlicht jpeg libglu-mesa libpng libspatialindex libssl \
Hans-G?nter@21439 18 libvorbis luajit mesa minetest-common openal sqlite"
Hans-G?nter@21439 19 BUILD_DEPENDS="cmake curl-dev freetype-dev gcc83 irrlicht-dev jpeg-dev \
Hans-G?nter@21439 20 libglu-mesa-dev libogg-dev libpng-dev libspatialindex-dev \
Hans-G?nter@21439 21 libvorbis-dev luajit-dev mesa-dev openal-dev sqlite-dev \
Hans-G?nter@21439 22 xorg-libXxf86vm-dev"
pascal@17696 23
pascal@17696 24 # Rules to configure and make the package.
pascal@17696 25 compile_rules()
pascal@17696 26 {
Hans-G?nter@21439 27 # As gcc-4.6.3 is insufficient, the most recent version of gcc
Hans-G?nter@21439 28 # available in the cooking repository is used
Hans-G?nter@21447 29 export CC=gcc-83
Hans-G?nter@21447 30 export CXX=g++-83
Hans-G?nter@21439 31
pascal@17696 32 [ -s "$SOURCES_REPOSITORY/$TARBALL2" ] || wget --no-check-certificate \
pankso@19862 33 -O "$SOURCES_REPOSITORY/$TARBALL2" ${EXTRA_SOURCE_FILES}
pankso@19862 34 {
pankso@19862 35 cd games/
pankso@19862 36 tar xf $SOURCES_REPOSITORY/$TARBALL2
pankso@19862 37 cd ..
pankso@19862 38 }
Hans-G?nter@21439 39 cd build &&
Hans-G?nter@21439 40 cmake \
Hans-G?nter@21439 41 -DCMAKE_INSTALL_PREFIX=/usr \
Hans-G?nter@21439 42 -DBUILD_CLIENT=TRUE \
Hans-G?nter@21439 43 -DBUILD_SERVER=TRUE \
Hans-G?nter@21439 44 -DENABLE_SPATIAL=TRUE \
Hans-G?nter@21439 45 -DENABLE_GETTEXT=TRUE \
Hans-G?nter@21439 46 -DVERSION_EXTRA="SliTaz" \
Hans-G?nter@21439 47 .. &&
pascal@21450 48 make &&
Hans-G?nter@21439 49 make install
pascal@17696 50 }
pascal@17696 51
pascal@17696 52 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17696 53 genpkg_rules()
pascal@17696 54 {
Hans-G?nter@21439 55 mkdir -p ${fs}/usr/bin
Hans-G?nter@21439 56 mkdir -p ${fs}/usr/share
Hans-G?nter@21439 57
Hans-G?nter@21439 58 cp -a ${install}/usr/bin/${PACKAGE} ${fs}/usr/bin
Hans-G?nter@21439 59 cp -a ${install}/usr/share/icons $fs/usr/share
pascal@17696 60 }
pascal@21785 61
pascal@21785 62 # Pre and post install commands for Tazpkg.
pascal@21785 63 post_install()
pascal@21785 64 {
pascal@21785 65 case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in
pascal@21785 66 *\ snd-pcm-oss\ *) ;;
pascal@22053 67 *) sed -i 's|LOAD_MODULES="|&snd-pcm-oss |' $1/etc/rcS.conf
pascal@21785 68 modprobe snd-pcm-oss;;
pascal@21785 69 esac
pascal@21785 70 }