wok-6.x annotate hdparm/receipt @ rev 25539
Up perl-test-compile (3.1.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 09 12:11:13 2023 +0000 (20 months ago) |
parents | ad0bc3efbf37 |
children |
rev | line source |
---|---|
hipeng@10955 | 1 # SliTaz package receipt. |
hipeng@10955 | 2 |
hipeng@10955 | 3 PACKAGE="hdparm" |
Hans-G?nter@24639 | 4 VERSION="9.63" |
hipeng@10955 | 5 CATEGORY="system-tools" |
Hans-G?nter@24639 | 6 SHORT_DESC="Get and set [S]ATA drive parameters under Linux." |
pascal@16047 | 7 MAINTAINER="lufeng369@slitaz.org" |
pascal@15215 | 8 LICENSE="BSD" |
pascal@25510 | 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@24639 | 26 make && |
Hans-G?nter@24639 | 27 make install DESTDIR=$DESTDIR |
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 { |
Hans-G?nter@24639 | 33 cook_copy_folders sbin |
hipeng@10955 | 34 } |