SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "oldrunner"

# SliTaz package receipt.

PACKAGE="oldrunner"
VERSION="20120131"
CATEGORY="games"
SHORT_DESC="a text-based remake of Broderbund's Loderunner"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="BSD"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://culot.org/public/Code/oldrunner.html"
WGET_URL="http://culot.org/cgi-bin/get.cgi?$TARBALL"

DEPENDS="ncurses"
BUILD_DEPENDS="ncurses-dev"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/tar.gz/!d;s|.*oldrunner-||;s|.tar.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    echo '#define LEVELS_PATH     "/usr/share/oldrunner"' >> cfg.h
    export LDFLAGS="$LDFLAGS -ltinfo"
    patch -p0 < $stuff/remap.u
    ./configure &&
    make
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share $fs/usr/bin $install/usr/man
    cp -a $src/levels $fs/usr/share/oldrunner
    cp $src/$PACKAGE-$VERSION $fs/usr/bin/$PACKAGE
    chown -R root.root $fs/usr
    cp $src/oldrunner.6 $install/usr/man
}
6017 packages and 861739 files in cooking database (Sun Sep 21 00:48:01 2025)