wok view cpuspeed/receipt @ rev 24596

updated gftp (2.0.19 -> 2.9.1b)
author Hans-G?nter Theisgen
date Tue Mar 01 15:53:52 2022 +0100 (2022-03-01)
parents a78610b2eb47
children
line source
1 # SliTaz package receipt.
3 PACKAGE="cpuspeed"
4 VERSION="1.5"
5 SHORT_DESC="CPU frequency scaling utility"
6 CATEGORY="system-tools"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.carlthompson.net/Software/CPUSpeed"
10 CONFIG_FILES="etc/default/cpufreq"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://www.carlthompson.net/downloads/$PACKAGE/$TARBALL"
13 TAGS="power-management"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - ${WGET_URL%/*} 2>/dev/null | \
19 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 make
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/sbin
33 cp -a $src/cpuspeed $fs/sbin
35 }