wok-current annotate hdparm/receipt @ rev 24412

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 09 21:05:34 2022 +0000 (2022-02-09)
parents 3d46aeb535ab
children 7f6cddcf47fe
rev   line source
hipeng@10955 1 # SliTaz package receipt.
hipeng@10955 2
hipeng@10955 3 PACKAGE="hdparm"
Hans-G?nter@21033 4 VERSION="9.58"
hipeng@10955 5 CATEGORY="system-tools"
Hans-G?nter@21033 6 SHORT_DESC="Get and set [S]ATA drive parameters under Linux"
pascal@16047 7 MAINTAINER="lufeng369@slitaz.org"
pascal@15215 8 LICENSE="BSD"
Hans-G?nter@21033 9 WEB_SITE="https://sourceforge.net/projects/hdparm/"
Hans-G?nter@21033 10
hipeng@10955 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
hipeng@10955 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
hipeng@10955 13
pascal@15215 14 DEPENDS="glibc"
pascal@15215 15
pascal@24412 16 # What is the latest version available today?
pascal@24412 17 current_version()
pascal@24412 18 {
pascal@24412 19 wget -O - https://sourceforge.net/projects/hdparm/files/hdparm/ 2>/dev/null | \
pascal@24412 20 sed '/scope="row/!d;s|.*/hdparm-||;s|.tar.*||;q'
pascal@24412 21 }
pascal@24412 22
hipeng@10955 23 # Rules to configure and make the package.
hipeng@10955 24 compile_rules()
hipeng@10955 25 {
Hans-G?nter@21033 26 make -j 1 &&
Hans-G?nter@21033 27 make DESTDIR=$DESTDIR install
hipeng@10955 28 }
hipeng@10955 29
hipeng@10955 30 # Rules to gen a SliTaz package suitable for Tazpkg.
hipeng@10955 31 genpkg_rules()
hipeng@10955 32 {
hipeng@10955 33 mkdir -p $fs/sbin
pascal@15215 34 cp -a $install/sbin/hdparm $fs/sbin/
hipeng@10955 35 }