wok annotate tp_smapi/receipt @ rev 24010
created recipes for diffuse and diffuse-lang
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jan 30 17:26:17 2021 +0100 (2021-01-30) |
parents | 532ab3b57d40 |
children | 922f061231c2 |
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@15601 | 8 LICENSE="GPL2" |
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@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 cd $src |
pascal@11227 | 19 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile |
pascal@11227 | 20 make modules HDAPS=1 |
pascal@11227 | 21 } |
pascal@11227 | 22 |
pascal@11227 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11227 | 24 genpkg_rules() |
pascal@11227 | 25 { |
pascal@11227 | 26 MOD_DIR=lib/modules/$kvers-slitaz/extra |
pascal@11227 | 27 mkdir -p $fs/$MOD_DIR |
pascal@11227 | 28 cp -a $src/*.ko $fs/$MOD_DIR |
pascal@11227 | 29 } |
pascal@11227 | 30 |
pascal@11227 | 31 post_install() |
pascal@11227 | 32 { |
pascal@11227 | 33 chroot "$1/" depmod -a |
pascal@11227 | 34 } |