wok annotate supertux/receipt @ rev 24687
Up musl-libc (1.2.2) CVE-2020-28928
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 12 11:02:58 2022 +0000 (2022-03-12) |
parents | 2b9f96603415 |
children | 0f92b8cc8086 |
rev | line source |
---|---|
mallory@2114 | 1 # SliTaz package receipt. |
mallory@2114 | 2 |
mallory@2114 | 3 PACKAGE="supertux" |
slaxemulator@7842 | 4 VERSION="0.3.3" |
mallory@2114 | 5 CATEGORY="games" |
mallory@2114 | 6 SHORT_DESC="SuperTux is a classic 2D jump'n run sidescroller game in a style similar to the original SuperMario games." |
pascal@14277 | 7 MAINTAINER="mallory@sweetpeople.org" |
pascal@14999 | 8 LICENSE="GPL3" |
jozee@5019 | 9 SUGGESTED="nvidia" |
mallory@2114 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
mallory@2114 | 11 WEB_SITE="http://supertux.lethargik.org/" |
slaxemulator@11405 | 12 WGET_URL="http://supertux.googlecode.com/files/$TARBALL" |
mallory@2114 | 13 |
pascal@13796 | 14 DEPENDS="libsdl libsdl-image libsdl-mixer curl physfs openal mesa glew \ |
pascal@13796 | 15 supertux-data" |
pascal@13796 | 16 BUILD_DEPENDS="libsdl-dev libsdl-image-dev libsdl-mixer-dev curl-dev \ |
pascal@13796 | 17 physfs-dev openal-dev mesa-dev glew-dev cmake libboost-dev" |
pascal@13796 | 18 |
pascal@24462 | 19 # What is the latest version available today? |
pascal@24462 | 20 current_version() |
pascal@24462 | 21 { |
pascal@24462 | 22 wget -O - http://supertux.github.io/index.html 2>/dev/null | \ |
pascal@24462 | 23 sed '/SuperTux [0-9]/!d;s|.*SuperTux ||;s|<.*||;q' |
pascal@24462 | 24 } |
pascal@24462 | 25 |
mallory@2114 | 26 # Rules to configure and make the package. |
mallory@2114 | 27 compile_rules() |
mallory@2114 | 28 { |
mallory@2114 | 29 cd $src |
pascal@8974 | 30 cp $stuff/menu.h src |
slaxemulator@11405 | 31 sed -i 's|# include <curl/types.h>||g' src/addon/addon_manager.cpp |
slaxemulator@11405 | 32 sed -i '1i#include <cstddef>' src/supertux/screen_manager.hpp |
slaxemulator@7842 | 33 cmake -D CMAKE_INSTALL_PREFIX=/usr -D INSTALL_SUBDIR_BIN=bin . |
slaxemulator@11405 | 34 make && make DESTDIR=$DESTDIR install |
mallory@2114 | 35 } |
mallory@2114 | 36 |
mallory@2114 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2114 | 38 genpkg_rules() |
mallory@2114 | 39 { |
mallory@2114 | 40 mkdir -p $fs/usr |
pascal@13796 | 41 cp -a $install/usr/bin $fs/usr |
mallory@2114 | 42 } |