wok-6.x view tp_smapi64/receipt @ rev 24985
Add python-future
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 10 07:46:58 2022 +0000 (2022-05-10) |
parents | f2bea3663690 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="tp_smapi64"
4 SOURCE="tp_smapi"
5 VERSION="0.41"
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/evgeni/tp_smapi"
12 WGET_URL="https://github.com/downloads/evgeni/$SOURCE/$TARBALL"
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 '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;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 }