wok annotate rhash/receipt @ rev 24626
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 07 17:32:18 2022 +0000 (2022-03-07) |
parents | 425563100416 |
children | ad0bc3efbf37 |
rev | line source |
---|---|
pascal@23955 | 1 # SliTaz package receipt. |
pascal@23955 | 2 |
pascal@23955 | 3 PACKAGE="rhash" |
pascal@23955 | 4 VERSION="1.4.0" |
pascal@23955 | 5 CATEGORY="misc" |
pascal@23955 | 6 SHORT_DESC="Compute and verify hash sums of files" |
pascal@23955 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@23955 | 8 LICENSE="BSD" |
pascal@23955 | 9 TARBALL="$PACKAGE-$VERSION-src.tar.gz" |
pascal@23955 | 10 WEB_SITE="https://sourceforge.net/projects/rhash/" |
pascal@23955 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@23955 | 12 TAGS="ed2k bthi magnet" |
pascal@23955 | 13 |
pascal@24348 | 14 # What is the latest version available today? |
pascal@24348 | 15 current_version() |
pascal@24348 | 16 { |
pascal@24348 | 17 wget -O - https://sourceforge.net/projects/rhash/files/rhash/ 2>/dev/null | \ |
pascal@24348 | 18 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24348 | 19 sed '/scope="row/!d;s|.*/rhash/||;s|/.*||;q' |
pascal@24348 | 20 } |
pascal@24348 | 21 |
pascal@23955 | 22 # Rules to configure and make the package. |
pascal@23955 | 23 compile_rules() |
pascal@23955 | 24 { |
pascal@23955 | 25 ./configure --prefix=/usr --sysconfdir=/etc && |
pascal@23955 | 26 make && |
pascal@23955 | 27 make DESTDIR=$DESTDIR install |
pascal@23955 | 28 } |
pascal@23955 | 29 |
pascal@23955 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@23955 | 31 genpkg_rules() |
pascal@23955 | 32 { |
pascal@23955 | 33 mkdir -p $fs/usr |
pascal@23955 | 34 cp -a $install/usr/bin $fs/usr |
pascal@23955 | 35 cp -a $install/usr/lib $fs/usr |
pascal@23955 | 36 cp -a $install/etc $fs |
pascal@23955 | 37 } |