wok view tp_smapi64/receipt @ rev 25669

Up lapack (3.12.0), less (633), libarchive (3.7.2), liblouis (3.28.0), libmicrohttpd (1.0.1), libpng (1.6.43), libssh (0.10.6), libtasn1 (4.19.0), libtirpc (1.3.4), libvpx (1.14.0), libwebp (1.3.2), logrotate (3.21.0), lua (5.4.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 25 16:11:20 2024 +0000 (3 months ago)
parents 3e075bf0378a
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tp_smapi64"
4 SOURCE="tp_smapi"
5 VERSION="0.43"
6 CATEGORY="base-system"
7 SHORT_DESC="IBM ThinkPad SMAPI BIOS driver"
8 MAINTAINER="domcox@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://github.com/linux-thinkpad/tp_smapi"
12 WGET_URL="https://github.com/linux-thinkpad/tp_smapi/archive/refs/tags/tp-smapi/$VERSION.tar.gz"
13 PROVIDE="tp_smapi:linux64"
15 BUILD_DEPENDS="linux64-module-headers linux-source wget \
16 uclibc-cross-compiler-x86_64"
18 # Aufs enable chroot
19 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - $WEB_SITE/releases 2>/dev/null | \
25 sed '/tag\//!d;s|.*tag/[A-Za-z_-]*||;s|".*||;s|%2F||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 sed -i "s/uname -r/echo $kvers-slitaz64/" Makefile
32 make modules HDAPS=1 CFLAGS="-Os -pipe -fomit-frame-pointer"
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 MOD_DIR=lib/modules/$kvers-slitaz64/extra
39 mkdir -p $fs/$MOD_DIR
40 cp -a $src/*.ko $fs/$MOD_DIR
41 }
43 # Post install/remove commands for Tazpkg.
44 post_install()
45 {
46 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
47 }
49 post_remove()
50 {
51 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
52 }