wok annotate oldrunner/receipt @ rev 25454

oldrunner: add apple2 keys mapping
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 22 07:58:57 2022 +0000 (2022-09-22)
parents df63c4ce07f8
children 002a704d9c02
rev   line source
pascal@21729 1 # SliTaz package receipt.
pascal@21729 2
pascal@21729 3 PACKAGE="oldrunner"
pascal@21729 4 VERSION="20120131"
pascal@21729 5 CATEGORY="games"
pascal@21729 6 SHORT_DESC="a text-based remake of Broderbund's Loderunner"
pascal@21729 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@21729 8 LICENSE="BSD"
pascal@21729 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@21729 10 WEB_SITE="http://culot.org/public/Code/oldrunner.html"
pascal@25442 11 WGET_URL="http://culot.org/cgi-bin/get.cgi?$TARBALL"
pascal@21729 12
pascal@21730 13 DEPENDS="ncurses"
pascal@21730 14 BUILD_DEPENDS="ncurses-dev"
pascal@21729 15
pascal@24453 16 # What is the latest version available today?
pascal@24453 17 current_version()
pascal@24453 18 {
pascal@24453 19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24453 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24453 21 }
pascal@24453 22
pascal@21729 23 # Rules to configure and make the package.
pascal@21729 24 compile_rules()
pascal@21729 25 {
pascal@21729 26 echo '#define LEVELS_PATH "/usr/share/oldrunner"' >> cfg.h
pascal@21729 27 export LDFLAGS="$LDFLAGS -ltinfo"
pascal@25454 28 patch -p0 < $stuff/remap.u
pascal@21729 29 ./configure &&
pascal@21729 30 make
pascal@21729 31 }
pascal@21729 32
pascal@21729 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@21729 34 genpkg_rules()
pascal@21729 35 {
pascal@21729 36 mkdir -p $fs/usr/share $fs/usr/bin $install/usr/man
pascal@21729 37 cp -a $src/levels $fs/usr/share/oldrunner
pascal@21729 38 cp $src/$PACKAGE-$VERSION $fs/usr/bin/$PACKAGE
pascal@21729 39 cp $src/oldrunner.6 $install/usr/man
pascal@21729 40 }