# 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 - ${WGET_URL%/*}/ 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed 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 }