wok-next diff kbd/receipt @ rev 20436

Update packages listed in the LFS book.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 21 19:48:17 2018 +0200 (2018-02-21)
parents 9a17d981d0f7
children 0ec6086e21d6
line diff
     1.1 --- a/kbd/receipt	Thu Jun 08 00:20:23 2017 +0300
     1.2 +++ b/kbd/receipt	Wed Feb 21 19:48:17 2018 +0200
     1.3 @@ -7,18 +7,16 @@
     1.4  MAINTAINER="pankso@slitaz.org"
     1.5  LICENSE="GPL2"
     1.6  WEB_SITE="http://kbd-project.org/"
     1.7 -HOST_ARCH="i486 arm"
     1.8 +LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/kbd.html"
     1.9  
    1.10  TARBALL="kbd-$VERSION.tar.xz"
    1.11  WGET_URL="https://www.kernel.org/pub/linux/utils/kbd/$TARBALL"
    1.12  
    1.13 +BUILD_DEPENDS_arm="flex check-dev"
    1.14  BUILD_DEPENDS="check-dev bison flex gettext patch pam-dev busybox"
    1.15 -BUILD_DEPENDS_arm="flex check-dev"
    1.16  SPLIT="kbd-base kbd-vlock kbd-busybox kbd"
    1.17  
    1.18 -# Rules to configure and make the package.
    1.19 -compile_rules()
    1.20 -{
    1.21 +compile_rules() {
    1.22  	sed -i 's/\(RESIZECONS_PROGS=\)yes/\1no/g' configure
    1.23  	sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in
    1.24  
    1.25 @@ -28,6 +26,11 @@
    1.26  		sed -i 's|	| |g; s|  *| |g; s|^ ||; s| $||; /^#/d; /^!/d; /^$/d' $i
    1.27  	done
    1.28  
    1.29 +	# Unicode range is limited by 0xf000 here with error "Unicode keysym out of range",
    1.30 +	# but de_alt_UTF-8.map has the symbols U+FB01, U+F8FF, U+FB02
    1.31 +	# And due to this error zero-sized file .kmap is produced.
    1.32 +	sed -i 's|0xf000|0xfffe|' src/libkeymap/analyze.c src/libkeymap/analyze.l
    1.33 +
    1.34  	./configure \
    1.35  		--datadir=/usr/share/kbd \
    1.36  		$CONFIGURE_ARGS &&
    1.37 @@ -35,8 +38,7 @@
    1.38  
    1.39  	mv $install/usr/share/kbd/locale $install/usr/share
    1.40  
    1.41 -	mkdir -p $install/usr/share/doc/kbd-$VERSION
    1.42 -	cp -R docs/doc/* $install/usr/share/doc/kbd-$VERSION
    1.43 +	cook_pick_docs docs/doc/*
    1.44  
    1.45  	# X11 keyboard aliases
    1.46  	ln -s croat.map.gz $install/usr/share/kbd/keymaps/i386/qwertz/hr.map.gz
    1.47 @@ -50,16 +52,13 @@
    1.48  	done
    1.49  }
    1.50  
    1.51 -# Make sure it will run on host or no keyboard support...
    1.52 -testsuite()
    1.53 -{
    1.54 +# Make sure it will run on target or no keyboard support...
    1.55 +testsuite() {
    1.56  	readelf -h $install/usr/bin/loadkeys
    1.57  	readelf -h $install/usr/bin/setfont
    1.58  }
    1.59  
    1.60 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.61 -genpkg_rules()
    1.62 -{
    1.63 +genpkg_rules() {
    1.64  	case $PACKAGE in
    1.65  		kbd-base)
    1.66  			copy loadkeys setfont \
    1.67 @@ -94,10 +93,9 @@
    1.68  			CAT="base-system|mappings for busybox"
    1.69  			;;
    1.70  		kbd)
    1.71 -			copy bin/ kbd/
    1.72 -			remove_already_packed
    1.73 +			copy bin/ kbd/ @rm
    1.74  			DEPENDS="kbd-base"
    1.75 -			TAGS="keyboard"
    1.76 +			TAGS="LFS keyboard"
    1.77  			;;
    1.78  	esac
    1.79  }