wok-6.x view laptop-mode-tools/receipt @ rev 24134
Up lzsa (1.3.8)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 28 18:03:20 2021 +0000 (2021-10-28) |
parents | a5291ed096db |
children | a8521217484c |
line source
1 # SliTaz package receipt.
3 PACKAGE="laptop-mode-tools"
4 VERSION="1.73.1"
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-blockdev util-linux-flock"
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 DESTDIR=$DESTDIR INIT_D=none install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share
35 mkdir -p $fs/etc/init.d
36 mkdir -p $fs/lib
38 cp -a $install/usr/sbin $fs/usr/
39 cp -a $stuff/laptop-mode.sh $fs/etc/init.d/
40 cp -a $install/etc/acpi $fs/etc/
41 cp -a $install/etc/apm $fs/etc/
42 cp -a $install/etc/laptop-mode $fs/etc/
43 cp -a $install/etc/power $fs/etc/
44 cp -a $install/lib/udev $fs/lib/
45 cp -a $install/usr/lib/ $fs/usr/
46 cp -a $install/usr/share/pixmaps $fs/usr/share/
47 }