wok-6.x view laptop-mode-tools/receipt @ rev 24985
Add python-future
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 10 07:46:58 2022 +0000 (2022-05-10) |
parents | 5ea0ce1cecc0 |
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 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 }