wok-current annotate xdigger/receipt @ rev 25177

Update some web_site & wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 02 13:44:10 2022 +0000 (2022-07-02)
parents 380ffe05937a
children
rev   line source
pascal@13733 1 # SliTaz package receipt.
pascal@13733 2
pascal@13733 3 PACKAGE="xdigger"
pascal@13733 4 VERSION="1.0.10"
pascal@13733 5 CATEGORY="games"
pascal@13733 6 SHORT_DESC="Digger rewritten for X11."
pascal@13733 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@13733 9 WEB_SITE="http://www.ibiblio.org/pub/Linux/games/arcade/xdigger.lsm"
pascal@13733 10 TARBALL="$PACKAGE-$VERSION.tgz"
pascal@13733 11 WGET_URL="$(dirname $WEB_SITE)/$TARBALL"
pascal@13733 12
pascal@13733 13 DEPENDS="xorg"
pascal@13733 14 BUILD_DEPENDS="xorg-imake xorg-dev"
pascal@13733 15
pascal@24465 16 # What is the latest version available today?
pascal@24465 17 current_version()
pascal@24465 18 {
pascal@24465 19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24465 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tgz/!d;s|.*$PACKAGE-\\(.*\\).tgz.*|\\1|" | sort -Vr | sed q
pascal@24465 21 }
pascal@24465 22
pascal@13733 23 # Rules to configure and make the package.
pascal@13733 24 compile_rules()
pascal@13733 25 {
pascal@13733 26 cd $src
pascal@13743 27 sed -i 's| inpause) step = Tr.*|&\nwait_count = 0;|;s| && cheat||' runlevels.c
pascal@13733 28 xmkmf
pascal@13733 29 make && make DESTDIR=$DESTDIR install
pascal@13733 30 }
pascal@13733 31
pascal@13733 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13733 33 genpkg_rules()
pascal@13733 34 {
pascal@13733 35 mkdir -p $fs/usr/bin
pascal@13733 36 cp -a $install/usr/lib $fs/usr
pascal@13733 37 cp -a $install/usr/bin/X11/xdigger $fs/usr/bin
pascal@13737 38 cp -a $stuff/*/ $fs
pascal@13733 39 }