wok-next annotate tp_smapi/receipt @ rev 20888
Check Repology info from q* to x* packages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jul 14 17:43:03 2018 +0300 (2018-07-14) |
parents | da9e80c5d4bb |
children | d5aab818505e |
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@20888 | 10 REPOLOGY="tp-smapi" |
al@20503 | 11 |
pascal@11227 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@19721 | 13 WGET_URL="$WEB_SITE/archive/${PACKAGE/_/-}/$VERSION.tar.gz" |
pascal@11227 | 14 |
al@20503 | 15 BUILD_DEPENDS="linux-module-headers linux-source" |
pascal@15601 | 16 |
al@20503 | 17 compile_rules() { |
pascal@11227 | 18 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile |
al@20503 | 19 |
al@20503 | 20 make modules HDAPS=1 || return 1 |
al@20503 | 21 |
al@20503 | 22 MOD_DIR=lib/modules/$kvers-slitaz/extra |
al@20503 | 23 mkdir -p $install/$MOD_DIR/ |
al@20503 | 24 cp -a $src/*.ko $install/$MOD_DIR/ |
pascal@11227 | 25 } |
pascal@11227 | 26 |
al@20503 | 27 genpkg_rules() { |
al@20503 | 28 copy @std |
pascal@11227 | 29 } |
pascal@11227 | 30 |
al@20503 | 31 post_install() { |
pascal@11227 | 32 chroot "$1/" depmod -a |
al@20503 | 33 } |