wok-current view oldrunner/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | 78727b04c002 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="oldrunner"
4 VERSION="20120131"
5 CATEGORY="games"
6 SHORT_DESC="a text-based remake of Broderbund's Loderunner"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://culot.org/public/Code/oldrunner.html"
11 WGET_URL="http://culot.org/cgi-bin/get.cgi?$TARBALL"
13 DEPENDS="ncurses"
14 BUILD_DEPENDS="ncurses-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 echo '#define LEVELS_PATH "/usr/share/oldrunner"' >> cfg.h
27 export LDFLAGS="$LDFLAGS -ltinfo"
28 patch -p0 < $stuff/remap.u
29 ./configure &&
30 make
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share $fs/usr/bin $install/usr/man
37 cp -a $src/levels $fs/usr/share/oldrunner
38 cp $src/$PACKAGE-$VERSION $fs/usr/bin/$PACKAGE
39 chown -R root.root $fs/usr
40 cp $src/oldrunner.6 $install/usr/man
41 }