wok-next view laptop-mode-tools/receipt @ rev 19686

turnserver: _SVID_SOURCE is deprecated
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 10 09:38:05 2017 +0200 (2017-04-10)
parents 8d64ce80ab95
children 8e1b2a143eb3
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 sed -i 's|/usr/man|/usr/share/man|' install.sh
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 }