wok view laptop-mode-tools/receipt @ rev 25140
updated pigz (2.4 -> 2.7)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 29 14:12:55 2022 +0100 (2022-06-29) |
parents | 5ea0ce1cecc0 |
children | 7364ffdaaa60 |
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 current_version()
17 {
18 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i 's|/usr/man|/usr/share/man|' \
26 install.sh
28 make install \
29 DESTDIR=$DESTDIR \
30 INIT_D=none
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/etc/init.d
37 mkdir -p $fs/lib
38 mkdir -p $fs/usr/share
40 cp -a $install/usr/sbin $fs/usr/
41 cp -a $stuff/laptop-mode.sh $fs/etc/init.d/
42 cp -a $install/etc/acpi $fs/etc/
43 cp -a $install/etc/apm $fs/etc/
44 cp -a $install/etc/laptop-mode $fs/etc/
45 cp -a $install/etc/power $fs/etc/
46 cp -a $install/lib/udev $fs/lib/
47 cp -a $install/usr/lib/ $fs/usr/
48 cp -a $install/usr/share/pixmaps $fs/usr/share/
49 }