wok-next annotate tp_smapi/receipt @ rev 20503
Packing...
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 16 06:03:21 2018 +0200 (2018-03-16) |
parents | 9d88fcaa58be |
children | cd7906120828 |
rev | line source |
---|---|
al@20503 | 1 # SliTaz package receipt v2. |
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" |
al@20503 | 9 WEB_SITE="https://github.com/evgeni/tp_smapi" |
al@20503 | 10 |
pascal@11227 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@19721 | 12 WGET_URL="$WEB_SITE/archive/${PACKAGE/_/-}/$VERSION.tar.gz" |
pascal@11227 | 13 |
al@20503 | 14 BUILD_DEPENDS="linux-module-headers linux-source" |
pascal@15601 | 15 |
al@20503 | 16 compile_rules() { |
pascal@11227 | 17 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile |
al@20503 | 18 |
al@20503 | 19 make modules HDAPS=1 || return 1 |
al@20503 | 20 |
al@20503 | 21 MOD_DIR=lib/modules/$kvers-slitaz/extra |
al@20503 | 22 mkdir -p $install/$MOD_DIR/ |
al@20503 | 23 cp -a $src/*.ko $install/$MOD_DIR/ |
pascal@11227 | 24 } |
pascal@11227 | 25 |
al@20503 | 26 genpkg_rules() { |
al@20503 | 27 copy @std |
pascal@11227 | 28 } |
pascal@11227 | 29 |
al@20503 | 30 post_install() { |
pascal@11227 | 31 chroot "$1/" depmod -a |
al@20503 | 32 } |