wok-4.x view tp_smapi/receipt @ rev 11264

Up: gnutls (3.0.7), add nettle (2.4)
author Alexander Medvedev <devl547@gmail.com>
date Wed Nov 09 11:54:03 2011 +0000 (2011-11-09)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tp_smapi"
4 VERSION="0.41"
5 CATEGORY="base-system"
6 SHORT_DESC="IBM ThinkPad SMAPI BIOS driver"
7 MAINTAINER="domcox@slitaz.org"
8 BUILD_DEPENDS="linux-module-headers linux-source wget"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/evgeni/tp_smapi"
11 WGET_URL="https://github.com/downloads/evgeni/$PACKAGE/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile
18 make modules HDAPS=1
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 MOD_DIR=lib/modules/$kvers-slitaz/extra
25 mkdir -p $fs/$MOD_DIR
26 cp -a $src/*.ko $fs/$MOD_DIR
27 }
29 post_install()
30 {
31 chroot "$1/" depmod -a
32 }