wok view tp_smapi64/receipt @ rev 20668

Up pjsip (2.8)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 21 10:25:55 2019 +0100 (2019-01-21)
parents 6238b9c00443
children 922f061231c2
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 # Rules to configure and make the package.
22 compile_rules()
23 {
24 sed -i "s/uname -r/echo $kvers-slitaz64/" Makefile
25 make modules HDAPS=1 CFLAGS="-Os -pipe -fomit-frame-pointer"
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 MOD_DIR=lib/modules/$kvers-slitaz64/extra
32 mkdir -p $fs/$MOD_DIR
33 cp -a $src/*.ko $fs/$MOD_DIR
34 }
36 # Post install/remove commands for Tazpkg.
37 post_install()
38 {
39 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
40 }
42 post_remove()
43 {
44 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
45 }