wok annotate tp_smapi/receipt @ rev 25000

updated nms (0.3.3 -> 1.0.1)
author Hans-G?nter Theisgen
date Mon May 16 13:53:18 2022 +0100 (2022-05-16)
parents 23c3aed67cd9
children 41581d281860
rev   line source
pascal@11227 1 # SliTaz package receipt.
pascal@11227 2
pascal@11227 3 PACKAGE="tp_smapi"
pascal@11227 4 VERSION="0.41"
pascal@11227 5 CATEGORY="base-system"
pascal@11227 6 SHORT_DESC="IBM ThinkPad SMAPI BIOS driver"
pascal@11227 7 MAINTAINER="domcox@slitaz.org"
pascal@15601 8 LICENSE="GPL2"
pascal@11227 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@11227 10 WEB_SITE="https://github.com/evgeni/tp_smapi"
pascal@11227 11 WGET_URL="https://github.com/downloads/evgeni/$PACKAGE/$TARBALL"
pascal@11227 12
pascal@15601 13 BUILD_DEPENDS="linux-module-headers linux-source wget"
pascal@15601 14
pascal@24304 15 # What is the latest version available today?
pascal@24304 16 current_version()
pascal@24304 17 {
pascal@24304 18 wget -O - $WEB_SITE/releases 2>/dev/null | \
pascal@24304 19 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24304 20 }
pascal@24304 21
pascal@11227 22 # Rules to configure and make the package.
pascal@11227 23 compile_rules()
pascal@11227 24 {
pascal@11227 25 cd $src
pascal@11227 26 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile
pascal@11227 27 make modules HDAPS=1
pascal@11227 28 }
pascal@11227 29
pascal@11227 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11227 31 genpkg_rules()
pascal@11227 32 {
pascal@11227 33 MOD_DIR=lib/modules/$kvers-slitaz/extra
pascal@11227 34 mkdir -p $fs/$MOD_DIR
pascal@11227 35 cp -a $src/*.ko $fs/$MOD_DIR
pascal@11227 36 }
pascal@11227 37
pascal@11227 38 post_install()
pascal@11227 39 {
pascal@11227 40 chroot "$1/" depmod -a
pascal@11227 41 }