wok annotate tp_smapi/receipt @ rev 11769
up midori (0.4.3) and added description
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Wed Feb 22 20:48:36 2012 -0800 (2012-02-22) |
parents | |
children | 23c3aed67cd9 |
rev | line source |
---|---|
pascal@11227 | 1 # SliTaz package receipt. |
pascal@11227 | 2 |
pascal@11227 | 3 PACKAGE="tp_smapi" |
pascal@11227 | 4 VERSION="0.41" |
pascal@11227 | 5 CATEGORY="base-system" |
pascal@11227 | 6 SHORT_DESC="IBM ThinkPad SMAPI BIOS driver" |
pascal@11227 | 7 MAINTAINER="domcox@slitaz.org" |
pascal@11227 | 8 BUILD_DEPENDS="linux-module-headers linux-source wget" |
pascal@11227 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@11227 | 10 WEB_SITE="https://github.com/evgeni/tp_smapi" |
pascal@11227 | 11 WGET_URL="https://github.com/downloads/evgeni/$PACKAGE/$TARBALL" |
pascal@11227 | 12 |
pascal@11227 | 13 # Rules to configure and make the package. |
pascal@11227 | 14 compile_rules() |
pascal@11227 | 15 { |
pascal@11227 | 16 cd $src |
pascal@11227 | 17 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile |
pascal@11227 | 18 make modules HDAPS=1 |
pascal@11227 | 19 } |
pascal@11227 | 20 |
pascal@11227 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11227 | 22 genpkg_rules() |
pascal@11227 | 23 { |
pascal@11227 | 24 MOD_DIR=lib/modules/$kvers-slitaz/extra |
pascal@11227 | 25 mkdir -p $fs/$MOD_DIR |
pascal@11227 | 26 cp -a $src/*.ko $fs/$MOD_DIR |
pascal@11227 | 27 } |
pascal@11227 | 28 |
pascal@11227 | 29 post_install() |
pascal@11227 | 30 { |
pascal@11227 | 31 chroot "$1/" depmod -a |
pascal@11227 | 32 } |