wok-next diff laptop-mode-tools/receipt @ rev 21047

Up tazpkg (971), cookutils (1095)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Nov 26 21:15:05 2018 +0200 (2018-11-26)
parents 8e1b2a143eb3
children 0cbe4b1f2230
line diff
     1.1 --- a/laptop-mode-tools/receipt	Sat Sep 01 16:21:51 2018 +0300
     1.2 +++ b/laptop-mode-tools/receipt	Mon Nov 26 21:15:05 2018 +0200
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="laptop-mode-tools"
     1.8  VERSION="1.60"
     1.9 @@ -6,28 +6,20 @@
    1.10  SHORT_DESC="Laptop ACPI tools"
    1.11  MAINTAINER="lufeng369@slitaz.org"
    1.12  LICENSE="GPL2"
    1.13 -DEPENDS="acpid hdparm util-linux-flock util-linux-blockdev"
    1.14 +WEB_SITE="http://rickysarraf.github.io/laptop-mode-tools/"
    1.15 +
    1.16  TARBALL="${PACKAGE}_$VERSION.tar.gz"
    1.17 -WEB_SITE="http://rickysarraf.github.io/laptop-mode-tools/"
    1.18  WGET_URL="http://samwel.tk/laptop_mode/tools/downloads/$TARBALL"
    1.19  
    1.20 -# Rules to configure and make the package.
    1.21 -compile_rules()
    1.22 -{
    1.23 +compile_rules() {
    1.24  	sed -i 's|/usr/man|/usr/share/man|' install.sh
    1.25 -	make DESTDIR=$DESTDIR INIT_D=none install
    1.26 +
    1.27 +	make DESTDIR=$install INIT_D=none install || return 1
    1.28 +
    1.29 +	install -Dm755 $stuff/laptop-mode.sh $install/etc/init.d/laptop-mode.sh
    1.30  }
    1.31  
    1.32 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.33 -genpkg_rules()
    1.34 -{
    1.35 -	mkdir -p $fs/usr/sbin/ $fs/etc/init.d/ $fs/lib
    1.36 -	cp -a $install/usr/sbin/laptop_mode $fs/usr/sbin/
    1.37 -	cp -a $stuff/laptop-mode.sh $fs/etc/init.d/
    1.38 -	cp -a $install/etc/acpi $fs/etc/
    1.39 -	cp -a $install/etc/laptop-mode $fs/etc/
    1.40 -	cp -a $install/etc/power $fs/etc/
    1.41 -	cp -a $install/etc/udev $fs/etc/
    1.42 -	cp -a $install/lib/udev $fs/lib/
    1.43 -	cp -a $install/usr/lib/ $fs/usr/
    1.44 +genpkg_rules() {
    1.45 +	copy @std
    1.46 +	DEPENDS="acpid hdparm util-linux-flock util-linux-blockdev"
    1.47  }