wok annotate minetest/receipt @ rev 25805
created recipe for xfce4-weather-plugin
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 13 15:24:31 2024 +0100 (4 days ago) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
pascal@17696 | 1 # SliTaz package receipt. |
pascal@17696 | 2 |
pascal@17696 | 3 PACKAGE="minetest" |
Hans-G?nter@23180 | 4 VERSION="5.1.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@25600 | 24 # What is the latest version available today? |
pascal@24055 | 25 current_version() |
pascal@24055 | 26 { |
pascal@24055 | 27 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25600 | 28 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 29 } |
pascal@24055 | 30 |
pascal@17696 | 31 # Rules to configure and make the package. |
pascal@17696 | 32 compile_rules() |
pascal@17696 | 33 { |
Hans-G?nter@21439 | 34 # As gcc-4.6.3 is insufficient, the most recent version of gcc |
Hans-G?nter@21439 | 35 # available in the cooking repository is used |
Hans-G?nter@21447 | 36 export CC=gcc-83 |
Hans-G?nter@21447 | 37 export CXX=g++-83 |
Hans-G?nter@21439 | 38 |
pascal@17696 | 39 [ -s "$SOURCES_REPOSITORY/$TARBALL2" ] || wget --no-check-certificate \ |
pankso@19862 | 40 -O "$SOURCES_REPOSITORY/$TARBALL2" ${EXTRA_SOURCE_FILES} |
pankso@19862 | 41 { |
pankso@19862 | 42 cd games/ |
pankso@19862 | 43 tar xf $SOURCES_REPOSITORY/$TARBALL2 |
pankso@19862 | 44 cd .. |
pankso@19862 | 45 } |
Hans-G?nter@21439 | 46 cd build && |
Hans-G?nter@21439 | 47 cmake \ |
Hans-G?nter@21439 | 48 -DCMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@21439 | 49 -DBUILD_CLIENT=TRUE \ |
Hans-G?nter@21439 | 50 -DBUILD_SERVER=TRUE \ |
Hans-G?nter@21439 | 51 -DENABLE_SPATIAL=TRUE \ |
Hans-G?nter@21439 | 52 -DENABLE_GETTEXT=TRUE \ |
Hans-G?nter@21439 | 53 -DVERSION_EXTRA="SliTaz" \ |
Hans-G?nter@21439 | 54 .. && |
pascal@21450 | 55 make && |
Hans-G?nter@21439 | 56 make install |
pascal@17696 | 57 } |
pascal@17696 | 58 |
pascal@17696 | 59 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17696 | 60 genpkg_rules() |
pascal@17696 | 61 { |
Hans-G?nter@21439 | 62 mkdir -p ${fs}/usr/bin |
Hans-G?nter@21439 | 63 mkdir -p ${fs}/usr/share |
Hans-G?nter@21439 | 64 |
Hans-G?nter@21439 | 65 cp -a ${install}/usr/bin/${PACKAGE} ${fs}/usr/bin |
Hans-G?nter@21439 | 66 cp -a ${install}/usr/share/icons $fs/usr/share |
pascal@17696 | 67 } |
pascal@21785 | 68 |
pascal@21785 | 69 # Pre and post install commands for Tazpkg. |
pascal@21785 | 70 post_install() |
pascal@21785 | 71 { |
pascal@21785 | 72 case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in |
pascal@21785 | 73 *\ snd-pcm-oss\ *) ;; |
pascal@22053 | 74 *) sed -i 's|LOAD_MODULES="|&snd-pcm-oss |' $1/etc/rcS.conf |
pascal@21785 | 75 modprobe snd-pcm-oss;; |
pascal@21785 | 76 esac |
pascal@21785 | 77 } |