wok view oldrunner/receipt @ rev 25442

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 02 16:30:36 2022 +0000 (20 months ago)
parents 241fb98cab1c
children 78727b04c002
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 ./configure &&
29 make
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share $fs/usr/bin $install/usr/man
36 cp -a $src/levels $fs/usr/share/oldrunner
37 cp $src/$PACKAGE-$VERSION $fs/usr/bin/$PACKAGE
38 cp $src/oldrunner.6 $install/usr/man
39 }