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

memtest, pack: cleanup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 09 16:28:01 2023 +0000 (21 months ago)
parents 5ea0ce1cecc0
children 7364ffdaaa60
rev   line source
hipeng@10961 1 # SliTaz package receipt.
hipeng@10961 2
hipeng@10961 3 PACKAGE="laptop-mode-tools"
Hans-G?nter@24705 4 VERSION="1.74"
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@24705 14 DEPENDS="acpid hdparm python util-linux-flock util-linux-blockdev"
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
Hans-G?nter@24705 28 make install \
Hans-G?nter@24705 29 DESTDIR=$DESTDIR \
Hans-G?nter@24705 30 INIT_D=none
hipeng@10961 31 }
hipeng@10961 32
hipeng@10961 33 # Rules to gen a SliTaz package suitable for Tazpkg.
hipeng@10961 34 genpkg_rules()
hipeng@10961 35 {
Hans-G?nter@21563 36 mkdir -p $fs/etc/init.d
Hans-G?nter@21096 37 mkdir -p $fs/lib
Hans-G?nter@24705 38 mkdir -p $fs/usr/share
Hans-G?nter@21096 39
Hans-G?nter@21563 40 cp -a $install/usr/sbin $fs/usr/
Hans-G?nter@21096 41 cp -a $stuff/laptop-mode.sh $fs/etc/init.d/
Hans-G?nter@21096 42 cp -a $install/etc/acpi $fs/etc/
Hans-G?nter@21099 43 cp -a $install/etc/apm $fs/etc/
Hans-G?nter@21096 44 cp -a $install/etc/laptop-mode $fs/etc/
Hans-G?nter@21096 45 cp -a $install/etc/power $fs/etc/
Hans-G?nter@21096 46 cp -a $install/lib/udev $fs/lib/
Hans-G?nter@21096 47 cp -a $install/usr/lib/ $fs/usr/
Hans-G?nter@21563 48 cp -a $install/usr/share/pixmaps $fs/usr/share/
hipeng@10961 49 }