wok-4.x view laptop-mode-tools/receipt @ rev 12376
xorg-xauth: add common path (thanks mojo)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 29 09:47:08 2013 +0100 (2013-01-29) |
parents | |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="laptop-mode-tools"
4 VERSION="1.59"
5 CATEGORY="system-tools"
6 SHORT_DESC="Laptop ACPI tools"
7 MAINTAINER="liupeng <hipeng@yahoo.com>"
8 DEPENDS="acpid hdparm util-linux-ng-flock util-linux-ng-blockdev"
9 TARBALL="${PACKAGE}_$VERSION.tar.gz"
10 WEB_SITE="http://samwel.tk/laptop_mode/"
11 WGET_URL="http://samwel.tk/laptop_mode/tools/downloads/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd ${PACKAGE}-$VERSION
17 make DESTDIR=$PWD/_pkg INIT_D=none install
18 }
20 # Rules to gen a SliTaz package suitable for Tazpkg.
21 genpkg_rules()
22 {
23 mkdir -p $fs/usr/sbin/ $fs/etc/init.d/ $fs/lib
24 cp -a $_pkg/usr/sbin/laptop_mode $fs/usr/sbin/
25 cp -a ./stuff/laptop-mode.sh $fs/etc/init.d/
26 cp -a $_pkg/etc/acpi $fs/etc/
27 cp -a $_pkg/etc/laptop-mode $fs/etc/
28 cp -a $_pkg/etc/power $fs/etc/
29 cp -a $_pkg/etc/udev $fs/etc/
30 cp -a $_pkg/lib/udev $fs/lib/
31 cp -a $_pkg/usr/lib/ $fs/usr/
32 }