wok view tp_smapi/receipt @ rev 25710
typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 25 12:42:06 2024 +0000 (4 months ago) |
parents | 41581d281860 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="tp_smapi"
4 VERSION="0.43"
5 CATEGORY="base-system"
6 SHORT_DESC="IBM ThinkPad SMAPI BIOS driver"
7 MAINTAINER="domcox@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/linux-thinkpad/tp_smapi"
11 WGET_URL="https://github.com/linux-thinkpad/tp_smapi/archive/refs/tags/tp-smapi/$VERSION.tar.gz"
13 BUILD_DEPENDS="linux-module-headers linux-source wget"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - $WEB_SITE/releases 2>/dev/null | \
19 sed '/tag\//!d;s|.*tag/[A-Za-z_-]*||;s|".*||;s|%2F||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile
26 make modules HDAPS=1
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 MOD_DIR=lib/modules/$kvers-slitaz/extra
33 mkdir -p $fs/$MOD_DIR
34 cp -a $src/*.ko $fs/$MOD_DIR
35 }
37 post_install()
38 {
39 chroot "$1/" depmod -a
40 }