wok annotate voxelands/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
parents dc0f7fd1ff7d
children
rev   line source
pascal@21786 1 # SliTaz package receipt.
pascal@21786 2
pascal@21786 3 PACKAGE="voxelands"
pascal@21786 4 VERSION="v1602.00"
pascal@21786 5 CATEGORY="games"
pascal@21786 6 SHORT_DESC="Voxelands sandbox construction game 3D based on Minetest"
pascal@21786 7 MAINTAINER="arca1085@gmail.com <René Rivero>"
pascal@21786 8 LICENSE="GPLv3"
pascal@21786 9 WEB_SITE="https://gitlab.com/voxelands/voxelands"
pascal@21786 10
pascal@21786 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@21786 12 WGET_URL="https://gitlab.com/$PACKAGE/$PACKAGE/-/archive/$VERSION/$PACKAGE-$VERSION.tar.gz --no-check-certificate"
pascal@21786 13
pascal@21786 14 DEPENDS="curl irrlicht jpeg libglu-mesa libpng libspatialindex libssl \
pascal@21787 15 libvorbis luajit mesa openal sqlite gcc83-lib-base"
pascal@21786 16 BUILD_DEPENDS="curl-dev freetype-dev gcc83 irrlicht-dev jpeg-dev \
pascal@21786 17 libglu-mesa-dev libogg-dev libpng-dev libspatialindex-dev \
pascal@21786 18 libvorbis-dev luajit-dev mesa-dev openal-dev sqlite-dev \
pascal@21787 19 xorg-libXxf86vm-dev cmake"
pascal@21786 20
pascal@24383 21 # What is the latest version available today?
pascal@24061 22 current_version()
pascal@24061 23 {
pascal@24061 24 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24383 25 sed '/tar.gz/!d;/data/d;s|.*/voxelands-v*\(.*\).tar.gz".*|v\1|' | sort -Vr | sed q
pascal@24061 26 }
pascal@24061 27
pascal@21786 28 # Rules to configure and make the package.
pascal@21786 29 compile_rules()
pascal@21786 30 {
pascal@21786 31 # As gcc-4.6.3 is insufficient, the most recent version of gcc
pascal@21786 32 # available in the cooking repository is used
pascal@21786 33 export CC=gcc-83
pascal@21786 34 export CXX=g++-83
pascal@21786 35
pascal@21786 36 cmake \
pascal@21786 37 -DCMAKE_INSTALL_PREFIX=/usr \
pascal@21786 38 -DBUILD_SERVER=1 \
pascal@21786 39 -DBUILD_CLIENT=1 \
pascal@21786 40 -DENABLE_AUDIO=1 \
pascal@21786 41 -DENABLE_GETTEXT=1 \
pascal@21786 42
pascal@21786 43 make &&
pascal@21786 44 make install
pascal@21786 45 }
pascal@21786 46
pascal@21786 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@21786 48 genpkg_rules()
pascal@21786 49 {
pascal@21786 50 mkdir -p ${fs}/usr/bin
pascal@21786 51 mkdir -p ${fs}/usr/share
pascal@21786 52
pascal@21786 53 cp -a ${install}/usr/bin/* ${fs}/usr/bin
pascal@21786 54 cp -a ${install}/usr/share $fs/usr
pascal@21786 55 }