wok-next view tp_smapi/receipt @ rev 16492
May we have mercurial in i486 also...
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 23 14:42:13 2014 +0200 (2014-04-23) |
parents | 532ab3b57d40 |
children | 9d88fcaa58be |
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 LICENSE="GPL2"
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 BUILD_DEPENDS="linux-module-headers linux-source wget"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile
20 make modules HDAPS=1
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 MOD_DIR=lib/modules/$kvers-slitaz/extra
27 mkdir -p $fs/$MOD_DIR
28 cp -a $src/*.ko $fs/$MOD_DIR
29 }
31 post_install()
32 {
33 chroot "$1/" depmod -a
34 }