Merge pull request #36 from tripledes/master
laptop-mode: proper use of depends and use of MAN_D variable
This commit is contained in:
commit
6cdf3b7ab7
1 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'laptop-mode'
|
||||
pkgname=laptop-mode
|
||||
version=1.62
|
||||
revision=2
|
||||
revision=4
|
||||
wrksrc=$pkgname-tools_$version
|
||||
noarch=yes
|
||||
short_desc="Laptop power saving package for Linux systems"
|
||||
|
@ -10,7 +10,7 @@ license="GPL-2"
|
|||
homepage="http://samwel.tk/laptop_mode/"
|
||||
distfiles="${homepage}/tools/downloads/$pkgname-tools_$version.tar.gz"
|
||||
checksum=d40b3d2fb4dc120b4a427ef7dbddc9dd4d9ea0c475685538d36d3457b39158cd
|
||||
fulldepends="acpid hdparm sdparm wireless_tools xset bluez"
|
||||
depends="acpid hdparm sdparm wireless_tools xset bluez"
|
||||
conf_files="/etc/laptop-mode/lm-profiler.conf /etc/laptop-mode/conf.d/lcd-brightness.conf /etc/laptop-mode/conf.d/video-out.conf
|
||||
/etc/laptop-mode/conf.d/wireless-iwl-power.conf /etc/laptop-mode/conf.d/nmi-watchdog.conf /etc/laptop-mode/conf.d/dpms-standby.conf
|
||||
/etc/laptop-mode/conf.d/runtime-pm.conf /etc/laptop-mode/conf.d/ethernet.conf /etc/laptop-mode/conf.d/eee-superhe.conf
|
||||
|
@ -23,11 +23,11 @@ conf_files="/etc/laptop-mode/lm-profiler.conf /etc/laptop-mode/conf.d/lcd-bright
|
|||
|
||||
do_install()
|
||||
{
|
||||
export DESTDIR=${XBPS_DESTDIR}/${pkgname}-${version} ACPI=force APM=disabled PMU=disabled INIT_D=none
|
||||
export DESTDIR=${XBPS_DESTDIR}/${pkgname}-${version} ACPI=force APM=disabled PMU=disabled INIT_D=none MAN_D=/usr/share/man
|
||||
sed -i 's|/etc/udev|/usr/lib/udev|g' install.sh
|
||||
# see /lib -> /usr/lib move
|
||||
sed -i 's|DESTDIR/lib|DESTDIR/usr/lib|g' install.sh
|
||||
sed -i 's|/lib|/usr/lib|g' etc/rules/99-laptop-mode.rules
|
||||
sed -i 's|/sbin/udevadm|/usr/bin/udevadm|g' usr/share/laptop-mode-tools/modules/hdparm
|
||||
$wrksrc/install.sh
|
||||
vmove usr/man usr/share
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue