wok-6.x annotate defragfs/receipt @ rev 24565
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 25 22:15:31 2022 +0000 (2022-02-25) |
parents | 8809751bb68d |
children | 00e3b45c063b |
rev | line source |
---|---|
pascal@18145 | 1 # SliTaz package receipt. |
pascal@18145 | 2 |
pascal@18145 | 3 PACKAGE="defragfs" |
pascal@18145 | 4 VERSION="1.1.1" |
pascal@18145 | 5 CATEGORY="misc" |
pascal@18145 | 6 SHORT_DESC="Measurement and Report and Defrag fs/file fragmentation." |
pascal@18145 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18145 | 8 LICENSE="GPL3" |
pascal@18145 | 9 TARBALL="$PACKAGE-$VERSION.gz" |
pascal@18145 | 10 WEB_SITE="http://defragfs.sourceforge.net/" |
pascal@18145 | 11 WGET_URL="http://vorboss.dl.sourceforge.net/project/$PACKAGE/$PACKAGE/$PACKAGE-${VERSION%.*}/$TARBALL" |
pascal@18145 | 12 |
pascal@18145 | 13 DEPENDS="perl" |
pascal@18145 | 14 |
pascal@24361 | 15 # What is the latest version available today? |
pascal@24361 | 16 current_version() |
pascal@24361 | 17 { |
pascal@24361 | 18 wget -O - https://sourceforge.net/projects/defragfs/files/defragfs/ 2>/dev/null | \ |
pascal@24361 | 19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24361 | 20 sed '/scope="row/!d;s|.*/defragfs-.*/defragfs-||;s|.gz.*||;q' |
pascal@24361 | 21 } |
pascal@24361 | 22 |
pascal@18145 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18145 | 24 genpkg_rules() |
pascal@18145 | 25 { |
pascal@18145 | 26 mkdir -p $fs/usr/bin |
pascal@18145 | 27 zcat $src/$TARBALL > $fs/usr/bin/defragfs |
pascal@18146 | 28 chmod 755 $fs/usr/bin/defragfs |
pascal@18145 | 29 } |