wok-6.x view tp_smapi/receipt @ rev 11888
Add xorg-xf86-video-fbdev (Xorg drive fro frame buffer devices)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Feb 28 14:38:57 2012 +0100 (2012-02-28) |
parents | |
children | 23c3aed67cd9 |
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 }