wok annotate eduke32/receipt @ rev 24939

f2c: add libf2c
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 15 16:15:33 2022 +0000 (2022-04-15)
parents 3705d68ed8f3
children
rev   line source
mallory@2717 1 # SliTaz package receipt.
mallory@2717 2
mallory@2717 3 PACKAGE="eduke32"
slaxemulator@9369 4 VERSION="20110319-1850"
mallory@2717 5 CATEGORY="games"
samuel_trassare@11993 6 SHORT_DESC="A port of the classic first-person shooter, Duke Nukem 3D"
mallory@2717 7 MAINTAINER="mallory@sweetpeople.org"
pascal@15202 8 LICENSE="GPL2"
slaxemulator@9369 9 TARBALL="${PACKAGE}_src_${VERSION}.tar.bz2"
mallory@2717 10 WEB_SITE="http://www.eduke32.com/"
slaxemulator@9369 11 WGET_URL="http://dukeworld.duke4.net/$PACKAGE/synthesis/$VERSION/$TARBALL"
jozee@4935 12 TAGS="shooting"
mallory@2717 13
pascal@13796 14 DEPENDS="libsdl libsdl-mixer libvorbis gtk+ eduke32-data"
pascal@13796 15 BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libvorbis-dev gtk+-dev nasm mesa-dev"
pascal@13796 16
pascal@24476 17 # What is the latest version available today?
pascal@24476 18 current_version()
pascal@24476 19 {
pascal@24476 20 wget -O - ${WGET_URL%/*/*}/ 2>/dev/null | \
pascal@24476 21 sed '/folder.png/!d;s|.*href="||;s|/".*||;q'
pascal@24476 22 }
pascal@24476 23
mallory@2717 24 # Rules to configure and make the package.
mallory@2717 25 compile_rules()
mallory@2717 26 {
pascal@20212 27 sed -i 's|uname -m|echo i486|' build/Makefile.shared
gokhlayeh@11574 28 make $MAKEFLAGS || return 1
pascal@15202 29 mkdir $DESTDIR
pascal@15202 30 cp eduke32 mapster32 $DESTDIR
mallory@2717 31 }
mallory@2717 32
mallory@2717 33 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@2717 34 genpkg_rules()
mallory@2717 35 {
mallory@2717 36 echo "Building package tree"
slaxemulator@9369 37 mkdir -p $fs/usr/bin
mallory@2717 38
mallory@2717 39 echo "Copying package files"
pascal@13796 40 cp -a $install/eduke32 $install/mapster32 $fs/usr/bin
mallory@2717 41 }
mallory@2717 42
mallory@2717 43