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

syslinux/c32box: x86_64 auto select
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 21 09:56:57 2014 +0200 (2014-08-21)
parents 380ffe05937a
children e8c84b81fa04
line source
1 # SliTaz package receipt.
3 PACKAGE="laptop-mode-tools"
4 VERSION="1.60"
5 CATEGORY="system-tools"
6 SHORT_DESC="Laptop ACPI tools"
7 MAINTAINER="lufeng369@slitaz.org"
8 LICENSE="GPL2"
9 DEPENDS="acpid hdparm util-linux-flock util-linux-blockdev"
10 TARBALL="${PACKAGE}_$VERSION.tar.gz"
11 WEB_SITE="http://samwel.tk/laptop_mode/"
12 WGET_URL="http://samwel.tk/laptop_mode/tools/downloads/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 make DESTDIR=$DESTDIR INIT_D=none install
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/usr/sbin/ $fs/etc/init.d/ $fs/lib
25 cp -a $install/usr/sbin/laptop_mode $fs/usr/sbin/
26 cp -a $stuff/laptop-mode.sh $fs/etc/init.d/
27 cp -a $install/etc/acpi $fs/etc/
28 cp -a $install/etc/laptop-mode $fs/etc/
29 cp -a $install/etc/power $fs/etc/
30 cp -a $install/etc/udev $fs/etc/
31 cp -a $install/lib/udev $fs/lib/
32 cp -a $install/usr/lib/ $fs/usr/
33 }