wok view xscavenger/receipt @ rev 24545
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 24 19:32:16 2022 +0000 (2022-02-24) |
parents | f785404cbaa7 |
children | 1805f71c5d9f |
line source
1 # SliTaz package receipt.
3 PACKAGE="xscavenger"
4 VERSION="1.4.5"
5 CATEGORY="games"
6 SHORT_DESC="Lode Runner rewritten for X11."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://web.archive.org/web/20140331111504/http://www.xdr.com/dash/scavenger.html"
11 TARBALL="$PACKAGE-$VERSION.tgz"
12 ARCHIVE="https://web.archive.org/web/20120609005153if_/"
13 WGET_URL="${ARCHIVE}$(dirname $WEB_SITE)/$TARBALL"
14 WGET_URL="${WEB_SITE}downloads/$TARBALL"
16 DEPENDS="alsa-lib xorg"
17 BUILD_DEPENDS="alsa-lib-dev xorg-imake xorg-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://www.linuxmotors.com/linux/scavenger/index.html 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tgz/!d;s|.*$PACKAGE-\\(.*\\).tgz.*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 cd $src/src
30 cp scavenger.6 scavenger.man
31 xmkmf
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/usr $fs
40 cp -a $stuff/*/ $fs
41 }