wok-next annotate laptop-mode-tools/receipt @ rev 11273
Up: webkit-r (99690)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Thu Nov 10 01:41:25 2011 +0000 (2011-11-10) |
parents | |
children | 9b879624d2d0 |
rev | line source |
---|---|
hipeng@10961 | 1 # SliTaz package receipt. |
hipeng@10961 | 2 |
hipeng@10961 | 3 PACKAGE="laptop-mode-tools" |
hipeng@10961 | 4 VERSION="1.59" |
hipeng@10961 | 5 CATEGORY="system-tools" |
hipeng@10961 | 6 SHORT_DESC="Laptop ACPI tools" |
hipeng@10961 | 7 MAINTAINER="liupeng <hipeng@yahoo.com>" |
hipeng@10961 | 8 DEPENDS="acpid hdparm util-linux-ng-flock util-linux-ng-blockdev" |
hipeng@10961 | 9 TARBALL="${PACKAGE}_$VERSION.tar.gz" |
hipeng@10961 | 10 WEB_SITE="http://samwel.tk/laptop_mode/" |
hipeng@10961 | 11 WGET_URL="http://samwel.tk/laptop_mode/tools/downloads/$TARBALL" |
hipeng@10961 | 12 |
hipeng@10961 | 13 # Rules to configure and make the package. |
hipeng@10961 | 14 compile_rules() |
hipeng@10961 | 15 { |
hipeng@10961 | 16 cd ${PACKAGE}-$VERSION |
hipeng@10961 | 17 make DESTDIR=$PWD/_pkg INIT_D=none install |
hipeng@10961 | 18 } |
hipeng@10961 | 19 |
hipeng@10961 | 20 # Rules to gen a SliTaz package suitable for Tazpkg. |
hipeng@10961 | 21 genpkg_rules() |
hipeng@10961 | 22 { |
hipeng@10961 | 23 mkdir -p $fs/usr/sbin/ $fs/etc/init.d/ $fs/lib |
hipeng@10961 | 24 cp -a $_pkg/usr/sbin/laptop_mode $fs/usr/sbin/ |
hipeng@10961 | 25 cp -a ./stuff/laptop-mode.sh $fs/etc/init.d/ |
hipeng@10961 | 26 cp -a $_pkg/etc/acpi $fs/etc/ |
hipeng@10961 | 27 cp -a $_pkg/etc/laptop-mode $fs/etc/ |
hipeng@10961 | 28 cp -a $_pkg/etc/power $fs/etc/ |
hipeng@10961 | 29 cp -a $_pkg/etc/udev $fs/etc/ |
hipeng@10961 | 30 cp -a $_pkg/lib/udev $fs/lib/ |
hipeng@10961 | 31 cp -a $_pkg/usr/lib/ $fs/usr/ |
hipeng@10961 | 32 } |
hipeng@10961 | 33 |