wok-next view tp_smapi/receipt @ rev 20074
Up dooble, smtube
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Oct 25 05:01:33 2017 +0200 (2017-10-25) |
parents | 23c3aed67cd9 |
children | da9e80c5d4bb |
line source
1 # SliTaz package receipt.
3 PACKAGE="tp_smapi"
4 VERSION="0.42"
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/evgeni/tp_smapi"
11 WGET_URL="$WEB_SITE/archive/${PACKAGE/_/-}/$VERSION.tar.gz"
13 BUILD_DEPENDS="linux-module-headers linux-source wget"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile
19 make modules HDAPS=1
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 MOD_DIR=lib/modules/$kvers-slitaz/extra
26 mkdir -p $fs/$MOD_DIR
27 cp -a $src/*.ko $fs/$MOD_DIR
28 }
30 post_install()
31 {
32 chroot "$1/" depmod -a
33 }