wok view oldrunner/receipt @ rev 25682
Up libqcow (20240308)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 24 18:25:46 2024 +0000 (5 months ago) |
parents | 002a704d9c02 |
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 - $WEB_SITE 2>/dev/null | \
20 sed '/tar.gz/!d;s|.*oldrunner-||;s|.tar.*||;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 }