wok annotate cpufrequtils/receipt @ rev 25039
Up aspell-pl (6.0_20210731-0), icmptx (20190501)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 26 14:53:15 2022 +0000 (2022-05-26) |
parents | 6e8b1bcb30e2 |
children |
rev | line source |
---|---|
gokhlayeh@5741 | 1 # SliTaz package receipt. |
gokhlayeh@5741 | 2 |
gokhlayeh@5741 | 3 PACKAGE="cpufrequtils" |
gokhlayeh@5952 | 4 VERSION="008" |
gokhlayeh@5875 | 5 CATEGORY="system-tools" |
gokhlayeh@5741 | 6 SHORT_DESC="Userspace tools for the kernel cpufreq subsystem." |
gokhlayeh@7034 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL2" |
gokhlayeh@5741 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20671 | 10 WEB_SITE="https://mirrors.edge.kernel.org/pub/linux/utils/kernel/cpufreq/" |
pascal@20421 | 11 WGET_URL="https://www.kernel.org/pub/linux/utils/kernel/cpufreq/$TARBALL" |
gokhlayeh@5741 | 12 |
pascal@15579 | 13 DEPENDS="sysfsutils linux-cpufreq" |
pascal@15579 | 14 BUILD_DEPENDS="libtool gettext sed" |
pascal@15579 | 15 |
pascal@24336 | 16 # What is the latest version available today? |
pascal@24336 | 17 current_version() |
pascal@24336 | 18 { |
pascal@24336 | 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -nr | sed q |
pascal@24336 | 21 } |
pascal@24336 | 22 |
gokhlayeh@5741 | 23 # Rules to configure and make the package. |
gokhlayeh@5741 | 24 compile_rules() |
gokhlayeh@5741 | 25 { |
pascal@19284 | 26 make LIBTOOL_OPT="--silent --tag=CC" && |
pascal@19284 | 27 make DESTDIR=$DESTDIR mandir=/usr/share/man install |
gokhlayeh@5741 | 28 } |
gokhlayeh@5741 | 29 |
gokhlayeh@5741 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@5741 | 31 genpkg_rules() |
gokhlayeh@5741 | 32 { |
pascal@19287 | 33 mkdir -p $fs/usr/share |
pascal@15579 | 34 cp -a $install/usr/bin $fs/usr |
pascal@15579 | 35 cp -a $install/usr/lib $fs/usr |
pascal@19287 | 36 cp -a $install/usr/share/locale $fs/usr/share |
gokhlayeh@5741 | 37 } |