wok view laptop-mode-tools/receipt @ rev 25600

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 15:14:43 2023 +0000 (10 months ago)
parents a8521217484c
children
line source
1 # SliTaz package receipt.
3 PACKAGE="laptop-mode-tools"
4 VERSION="1.74"
5 CATEGORY="system-tools"
6 SHORT_DESC="Laptop ACPI tools."
7 MAINTAINER="lufeng369@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/rickysarraf/laptop-mode-tools"
11 TARBALL="${PACKAGE}_$VERSION.tar.gz"
12 WGET_URL="https://github.com/rickysarraf/$PACKAGE/releases/download/$VERSION/$TARBALL"
14 DEPENDS="acpid hdparm python util-linux-flock util-linux-blockdev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
20 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's|/usr/man|/usr/share/man|' \
27 install.sh
29 make install \
30 DESTDIR=$DESTDIR \
31 INIT_D=none
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/etc/init.d
38 mkdir -p $fs/lib
39 mkdir -p $fs/usr/share
41 cp -a $install/usr/sbin $fs/usr/
42 cp -a $stuff/laptop-mode.sh $fs/etc/init.d/
43 cp -a $install/etc/acpi $fs/etc/
44 cp -a $install/etc/apm $fs/etc/
45 cp -a $install/etc/laptop-mode $fs/etc/
46 cp -a $install/etc/power $fs/etc/
47 cp -a $install/lib/udev $fs/lib/
48 cp -a $install/usr/lib/ $fs/usr/
49 cp -a $install/usr/share/pixmaps $fs/usr/share/
50 }