wok view tp_smapi64/receipt @ rev 25217
updated python-pdfkit (0.6.1 -> 1.0.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 15:33:13 2022 +0100 (2022-07-13) |
parents | f2bea3663690 |
children | 3e075bf0378a |
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 }