wok annotate laptop-mode-tools/receipt @ rev 24283

updated scummvm (2.1.2 -> 2.5.1)
author Hans-G?nter Theisgen
date Wed Jan 12 15:42:09 2022 +0100 (2022-01-12)
parents a5291ed096db
children a8521217484c
rev   line source
hipeng@10961 1 # SliTaz package receipt.
hipeng@10961 2
hipeng@10961 3 PACKAGE="laptop-mode-tools"
Hans-G?nter@22993 4 VERSION="1.73.1"
hipeng@10961 5 CATEGORY="system-tools"
Hans-G?nter@21096 6 SHORT_DESC="Laptop ACPI tools."
pascal@16047 7 MAINTAINER="lufeng369@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
Hans-G?nter@21096 9 WEB_SITE="https://github.com/rickysarraf/laptop-mode-tools"
Hans-G?nter@21096 10
Hans-G?nter@21096 11 TARBALL="${PACKAGE}_$VERSION.tar.gz"
Hans-G?nter@21096 12 WGET_URL="https://github.com/rickysarraf/$PACKAGE/releases/download/$VERSION/$TARBALL"
Hans-G?nter@21096 13
Hans-G?nter@22993 14 DEPENDS="acpid hdparm python util-linux-blockdev util-linux-flock"
hipeng@10961 15
pascal@24055 16 current_version()
pascal@24055 17 {
pascal@24055 18 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 20 }
pascal@24055 21
hipeng@10961 22 # Rules to configure and make the package.
hipeng@10961 23 compile_rules()
hipeng@10961 24 {
Hans-G?nter@22993 25 sed -i 's|/usr/man|/usr/share/man|' \
Hans-G?nter@22993 26 install.sh
Hans-G?nter@22993 27
slaxemulator@12378 28 make DESTDIR=$DESTDIR INIT_D=none install
hipeng@10961 29 }
hipeng@10961 30
hipeng@10961 31 # Rules to gen a SliTaz package suitable for Tazpkg.
hipeng@10961 32 genpkg_rules()
hipeng@10961 33 {
Hans-G?nter@21563 34 mkdir -p $fs/usr/share
Hans-G?nter@21563 35 mkdir -p $fs/etc/init.d
Hans-G?nter@21096 36 mkdir -p $fs/lib
Hans-G?nter@21096 37
Hans-G?nter@21563 38 cp -a $install/usr/sbin $fs/usr/
Hans-G?nter@21096 39 cp -a $stuff/laptop-mode.sh $fs/etc/init.d/
Hans-G?nter@21096 40 cp -a $install/etc/acpi $fs/etc/
Hans-G?nter@21099 41 cp -a $install/etc/apm $fs/etc/
Hans-G?nter@21096 42 cp -a $install/etc/laptop-mode $fs/etc/
Hans-G?nter@21096 43 cp -a $install/etc/power $fs/etc/
Hans-G?nter@21096 44 cp -a $install/lib/udev $fs/lib/
Hans-G?nter@21096 45 cp -a $install/usr/lib/ $fs/usr/
Hans-G?nter@21563 46 cp -a $install/usr/share/pixmaps $fs/usr/share/
hipeng@10961 47 }