wok-tiny diff jslinux-config/receipt @ rev 131

base-tiny: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 20 09:49:39 2017 +0200 (2017-08-20)
parents 0d8ef9102fc0
children e88834c5a2a0
line diff
     1.1 --- a/jslinux-config/receipt	Sat Feb 27 10:51:46 2016 +0100
     1.2 +++ b/jslinux-config/receipt	Sun Aug 20 09:49:39 2017 +0200
     1.3 @@ -1,17 +1,36 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="jslinux-config"
     1.7 -VERSION="1.0"
     1.8 -CATEGORY="system"
     1.9 +VERSION="2.6.14"
    1.10 +CATEGORY="base-system"
    1.11 +GROUP="driver"
    1.12  SHORT_DESC="Tiny SliTaz configuration files for jslinux"
    1.13  MAINTAINER="pascal.bellard@slitaz.org"
    1.14  LICENSE="BSD"
    1.15  WEB_SITE="http://tiny.slitaz.org/"
    1.16  DEPENDS="custom-console"
    1.17 +WANTED="linux"
    1.18  
    1.19  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.20  genpkg_rules()
    1.21  {
    1.22 -	mkdir -p $fs/dev
    1.23 +	local path
    1.24 +	export src=$WOK/$WANTED/source/linux-$VERSION
    1.25 +	export _pkg=$WOK/$WANTED/install
    1.26 +	path=lib/modules/$(ls $_pkg/lib/modules)/kernel
    1.27 +	mkdir -p $fs/$path $fs/dev
    1.28 +	$src/slitaz/list_modules.sh drivers/char/jsclipboard.ko | while read module; do
    1.29 +		dir=$path/$(dirname $module)
    1.30 +		[ -d $fs/$dir ] || mkdir -p $fs/$dir
    1.31 +		cp -a $_pkg/$path/$module $fs/$dir
    1.32 +	done
    1.33  	mknod -m 660 $fs/dev/clipboard c 10 231
    1.34  }
    1.35 +
    1.36 +# Post install/remove commands for Tazpkg.
    1.37 +post_install()
    1.38 +{
    1.39 +	for i in jsclipboard ; do
    1.40 +		grep -qs ^$i$ $1/modules || echo $i >> $1/modules
    1.41 +	done
    1.42 +}