wok annotate laptop-mode-tools/receipt @ rev 12463
Add lxpolkit (We may AVOID using poljit by default, but here is an interface)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 22 18:08:25 2012 +0200 (2012-04-22) |
parents | 66ba59187c47 |
children | 73641efed1cc |
rev | line source |
---|---|
hipeng@10961 | 1 # SliTaz package receipt. |
hipeng@10961 | 2 |
hipeng@10961 | 3 PACKAGE="laptop-mode-tools" |
slaxemulator@12378 | 4 VERSION="1.60" |
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 { |
slaxemulator@12378 | 16 cd $src |
slaxemulator@12378 | 17 make DESTDIR=$DESTDIR 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/ |
slaxemulator@12378 | 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 |