wok-4.x view kbd/receipt @ rev 12477

Up openssl 1.1.1n (bump packages curl, git, wget, python), up cherokee 1.2.104 and bdeps (automake, openldap, cyrus-sasl)
author Stanislas Leduc <shann@slitaz.org>
date Sun Apr 02 14:34:44 2023 +0000 (14 months ago)
parents b7319995b37e
children
line source
1 # SliTaz package receipt.
3 PACKAGE="kbd"
4 VERSION="1.15.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Keyboard maping definitions and tools."
7 BUILD_DEPENDS="flex automake"
8 MAINTAINER="pankso@slitaz.org"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.kernel.org/pub/linux/utils/kbd/"
11 #WGET_URL="http://www.kernel.org/pub/linux/utils/kbd/$TARBALL"
12 WGET_URL="http://mirror.slitaz.org/sources/packages-4.0/k/$TARBALL"
13 TAGS="keyboard"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 patch -Np1 -i $stuff/fix-es.po.patch
20 ./configure --datadir=/usr/share/kbd $CONFIGURE_ARGS &&
21 make &&
22 make install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/share
30 # Copy all kbd files (should we split fonts ?) and remove the one
31 # provided by: kbd-base.
32 cp -a $_pkg/usr/share/kbd $fs/usr/share
33 rm -rf $fs/usr/share/kbd/keymaps/i386
35 # Tools
36 cp -a $_pkg/usr/bin $fs/usr
37 }
39 # Overlap busybox
40 pre_install()
41 {
42 rm -f $1/usr/bin/deallocvt
43 rm -f $1/usr/bin/chvt
44 rm -f $1/usr/bin/setkeycodes
45 rm -f $1/usr/bin/openvt
46 rm -f $1/usr/bin/kbd_mode
47 }
49 post_remove()
50 {
51 ln -s /bin/busybox $1/usr/bin/deallocvt
52 ln -s /bin/busybox $1/usr/bin/chvt
53 ln -s /bin/busybox $1/usr/bin/setkeycodes
54 ln -s /bin/busybox $1/usr/bin/openvt
55 ln -s /bin/busybox $1/usr/bin/kbd_mode
56 }