wok-next annotate tp_smapi/receipt @ rev 20113
Add some bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 30 09:29:31 2017 +0100 (2017-10-30) |
parents | 23c3aed67cd9 |
children | da9e80c5d4bb |
rev | line source |
---|---|
pascal@11227 | 1 # SliTaz package receipt. |
pascal@11227 | 2 |
pascal@11227 | 3 PACKAGE="tp_smapi" |
pascal@19721 | 4 VERSION="0.42" |
pascal@11227 | 5 CATEGORY="base-system" |
pascal@11227 | 6 SHORT_DESC="IBM ThinkPad SMAPI BIOS driver" |
pascal@11227 | 7 MAINTAINER="domcox@slitaz.org" |
pascal@15601 | 8 LICENSE="GPL2" |
pascal@11227 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@11227 | 10 WEB_SITE="https://github.com/evgeni/tp_smapi" |
pascal@19721 | 11 WGET_URL="$WEB_SITE/archive/${PACKAGE/_/-}/$VERSION.tar.gz" |
pascal@11227 | 12 |
pascal@15601 | 13 BUILD_DEPENDS="linux-module-headers linux-source wget" |
pascal@15601 | 14 |
pascal@11227 | 15 # Rules to configure and make the package. |
pascal@11227 | 16 compile_rules() |
pascal@11227 | 17 { |
pascal@11227 | 18 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile |
pascal@11227 | 19 make modules HDAPS=1 |
pascal@11227 | 20 } |
pascal@11227 | 21 |
pascal@11227 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11227 | 23 genpkg_rules() |
pascal@11227 | 24 { |
pascal@11227 | 25 MOD_DIR=lib/modules/$kvers-slitaz/extra |
pascal@11227 | 26 mkdir -p $fs/$MOD_DIR |
pascal@11227 | 27 cp -a $src/*.ko $fs/$MOD_DIR |
pascal@11227 | 28 } |
pascal@11227 | 29 |
pascal@11227 | 30 post_install() |
pascal@11227 | 31 { |
pascal@11227 | 32 chroot "$1/" depmod -a |
pascal@11227 | 33 } |