wok diff tp_smapi/receipt @ rev 15079
libdes: add license
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 13 17:28:10 2013 +0000 (2013-08-13) |
parents | |
children | 23c3aed67cd9 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tp_smapi/receipt Tue Aug 13 17:28:10 2013 +0000 1.3 @@ -0,0 +1,32 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="tp_smapi" 1.7 +VERSION="0.41" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="IBM ThinkPad SMAPI BIOS driver" 1.10 +MAINTAINER="domcox@slitaz.org" 1.11 +BUILD_DEPENDS="linux-module-headers linux-source wget" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WEB_SITE="https://github.com/evgeni/tp_smapi" 1.14 +WGET_URL="https://github.com/downloads/evgeni/$PACKAGE/$TARBALL" 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +compile_rules() 1.18 +{ 1.19 + cd $src 1.20 + sed -i "s/uname -r/echo $kvers-slitaz/" Makefile 1.21 + make modules HDAPS=1 1.22 +} 1.23 + 1.24 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.25 +genpkg_rules() 1.26 +{ 1.27 + MOD_DIR=lib/modules/$kvers-slitaz/extra 1.28 + mkdir -p $fs/$MOD_DIR 1.29 + cp -a $src/*.ko $fs/$MOD_DIR 1.30 +} 1.31 + 1.32 +post_install() 1.33 +{ 1.34 + chroot "$1/" depmod -a 1.35 +} 1.36 \ No newline at end of file