# SliTaz package receipt. PACKAGE="eduke32" VERSION="20110319-1850" CATEGORY="games" SHORT_DESC="A port of the classic first-person shooter, Duke Nukem 3D" MAINTAINER="mallory@sweetpeople.org" LICENSE="GPL2" TARBALL="${PACKAGE}_src_${VERSION}.tar.bz2" WEB_SITE="http://www.eduke32.com/" WGET_URL="http://dukeworld.duke4.net/$PACKAGE/synthesis/$VERSION/$TARBALL" TAGS="shooting" DEPENDS="libsdl libsdl-mixer libvorbis gtk+ eduke32-data" BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libvorbis-dev gtk+-dev nasm mesa-dev" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*/*}/ 2>/dev/null | \ sed '/folder.png/!d;s|.*href="||;s|/".*||;q' } # Rules to configure and make the package. compile_rules() { sed -i 's|uname -m|echo i486|' build/Makefile.shared make $MAKEFLAGS || return 1 mkdir $DESTDIR cp eduke32 mapster32 $DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { echo "Building package tree" mkdir -p $fs/usr/bin echo "Copying package files" cp -a $install/eduke32 $install/mapster32 $fs/usr/bin }