wok view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="hdparm"
4 VERSION="9.58"
5 CATEGORY="system-tools"
6 SHORT_DESC="Get and set [S]ATA drive parameters under Linux"
7 MAINTAINER="lufeng369@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://sourceforge.net/projects/hdparm/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="glibc"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/hdparm/files/hdparm/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*/hdparm-||;s|.tar.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 make -j 1 &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/sbin
34 cp -a $install/sbin/hdparm $fs/sbin/
35 }