wok-next diff tp_smapi/receipt @ rev 20834
prosody: interesting, requires lua 5.1, and not 5.3
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Sun Jun 17 19:14:11 2018 +0000 (2018-06-17) |
parents | 9d88fcaa58be |
children | cd7906120828 |
line diff
1.1 --- a/tp_smapi/receipt Wed May 24 17:53:32 2017 +0200 1.2 +++ b/tp_smapi/receipt Sun Jun 17 19:14:11 2018 +0000 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="tp_smapi" 1.8 VERSION="0.42" 1.9 @@ -6,28 +6,27 @@ 1.10 SHORT_DESC="IBM ThinkPad SMAPI BIOS driver" 1.11 MAINTAINER="domcox@slitaz.org" 1.12 LICENSE="GPL2" 1.13 +WEB_SITE="https://github.com/evgeni/tp_smapi" 1.14 + 1.15 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.16 -WEB_SITE="https://github.com/evgeni/tp_smapi" 1.17 WGET_URL="$WEB_SITE/archive/${PACKAGE/_/-}/$VERSION.tar.gz" 1.18 1.19 -BUILD_DEPENDS="linux-module-headers linux-source wget" 1.20 +BUILD_DEPENDS="linux-module-headers linux-source" 1.21 1.22 -# Rules to configure and make the package. 1.23 -compile_rules() 1.24 -{ 1.25 +compile_rules() { 1.26 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile 1.27 - make modules HDAPS=1 1.28 + 1.29 + make modules HDAPS=1 || return 1 1.30 + 1.31 + MOD_DIR=lib/modules/$kvers-slitaz/extra 1.32 + mkdir -p $install/$MOD_DIR/ 1.33 + cp -a $src/*.ko $install/$MOD_DIR/ 1.34 } 1.35 1.36 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.37 -genpkg_rules() 1.38 -{ 1.39 - MOD_DIR=lib/modules/$kvers-slitaz/extra 1.40 - mkdir -p $fs/$MOD_DIR 1.41 - cp -a $src/*.ko $fs/$MOD_DIR 1.42 +genpkg_rules() { 1.43 + copy @std 1.44 } 1.45 1.46 -post_install() 1.47 -{ 1.48 +post_install() { 1.49 chroot "$1/" depmod -a 1.50 -} 1.51 \ No newline at end of file 1.52 +}