wok annotate voxelands/receipt @ rev 24061
Add lz4ultra
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 12 09:05:17 2021 +0000 (2021-06-12) |
parents | 3be8209f2bdf |
children | 076f424196b2 |
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@24061 | 21 current_version() |
pascal@24061 | 22 { |
pascal@24061 | 23 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24061 | 24 sed '/tar.gz/!d;s|.*/voxelands-\(.*\).tar.gz".*|\1|;q' |
pascal@24061 | 25 } |
pascal@24061 | 26 |
pascal@21786 | 27 # Rules to configure and make the package. |
pascal@21786 | 28 compile_rules() |
pascal@21786 | 29 { |
pascal@21786 | 30 # As gcc-4.6.3 is insufficient, the most recent version of gcc |
pascal@21786 | 31 # available in the cooking repository is used |
pascal@21786 | 32 export CC=gcc-83 |
pascal@21786 | 33 export CXX=g++-83 |
pascal@21786 | 34 |
pascal@21786 | 35 cmake \ |
pascal@21786 | 36 -DCMAKE_INSTALL_PREFIX=/usr \ |
pascal@21786 | 37 -DBUILD_SERVER=1 \ |
pascal@21786 | 38 -DBUILD_CLIENT=1 \ |
pascal@21786 | 39 -DENABLE_AUDIO=1 \ |
pascal@21786 | 40 -DENABLE_GETTEXT=1 \ |
pascal@21786 | 41 |
pascal@21786 | 42 make && |
pascal@21786 | 43 make install |
pascal@21786 | 44 } |
pascal@21786 | 45 |
pascal@21786 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@21786 | 47 genpkg_rules() |
pascal@21786 | 48 { |
pascal@21786 | 49 mkdir -p ${fs}/usr/bin |
pascal@21786 | 50 mkdir -p ${fs}/usr/share |
pascal@21786 | 51 |
pascal@21786 | 52 cp -a ${install}/usr/bin/* ${fs}/usr/bin |
pascal@21786 | 53 cp -a ${install}/usr/share $fs/usr |
pascal@21786 | 54 } |