wok-6.x annotate stegsnow/receipt @ rev 24465

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 17 12:02:46 2022 +0000 (2022-02-17)
parents 4ec7886bf6d2
children 73f36875e5a7
rev   line source
pascal@18096 1 # SliTaz package receipt.
pascal@18096 2
pascal@18096 3 PACKAGE="stegsnow"
pascal@18096 4 SOURCE="snow"
pascal@18096 5 VERSION="20130616"
pascal@18096 6 CATEGORY="security"
pascal@18096 7 SHORT_DESC="The Steganographic Nature Of Whitespace."
pascal@18096 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@18096 9 LICENSE="Apache"
pascal@18096 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@18096 11 WEB_SITE="http://www.darkside.com.au/snow"
pascal@18096 12 WGET_URL="$WEB_SITE/$TARBALL"
pascal@18096 13 TAGS="stenography"
pascal@18096 14
pascal@24425 15 # What is the latest version available today?
pascal@24425 16 current_version()
pascal@24425 17 {
pascal@24425 18 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24425 19 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24425 20 }
pascal@24425 21
pascal@18096 22 # Rules to configure and make the package.
pascal@18096 23 compile_rules()
pascal@18096 24 {
pascal@18096 25 make
pascal@18096 26 }
pascal@18096 27
pascal@18096 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18096 29 genpkg_rules()
pascal@18096 30 {
pascal@18096 31 mkdir -p $fs/usr/bin
pascal@18096 32 cp -a $src/snow $fs/usr/bin/stegsnow
pascal@18096 33 }