wok-current annotate foremost/receipt @ rev 24439

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 13 18:01:32 2022 +0000 (2022-02-13)
parents 3b4e4318134e
children b0069c845544
rev   line source
pascal@4477 1 # SliTaz package receipt.
pascal@4477 2
pascal@4477 3 PACKAGE="foremost"
slaxemulator@6580 4 VERSION="1.5.7"
pascal@4477 5 CATEGORY="system-tools"
pascal@4477 6 SHORT_DESC="Data carving utility."
pascal@4477 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15593 8 LICENSE="PublicDomain"
pascal@4477 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@4477 10 WEB_SITE="http://foremost.sourceforge.net"
pascal@4477 11 WGET_URL="$WEB_SITE/pkg/$TARBALL"
pascal@4477 12
pascal@24439 13 # What is the latest version available today?
pascal@24439 14 current_version()
pascal@24439 15 {
pascal@24439 16 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24439 17 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24439 18 }
pascal@24439 19
pascal@4477 20 # Rules to configure and make the package.
pascal@4477 21 compile_rules()
pascal@4477 22 {
ernia@13902 23 cd $src
ernia@13902 24 sed -i 's/\/usr\/local\/etc/\/etc/' config.c
ernia@13902 25 make
pascal@4477 26 }
pascal@4477 27
pascal@4477 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4477 29 genpkg_rules()
pascal@4477 30 {
pascal@4477 31 mkdir -p $fs/usr/bin $fs/etc
pascal@4477 32 cp -a $src/foremost $fs/usr/bin
pascal@4477 33 cp -a $src/foremost.conf $fs/etc
pascal@4477 34 }
pascal@4477 35