wok-current view tp_smapi/receipt @ rev 25637
Add miss new packages (Py3Qt-x11-gpl and pycairo118)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Jan 15 22:12:34 2024 +0000 (11 months ago) |
parents | 922f061231c2 |
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 '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;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 }