wok-6.x view xvkbd/receipt @ rev 23835
Up axel (2.17.8), bluez (5.54), cpio (2.13), dnsmasq (2.81), libssh (0.9.4), unbound (1.10.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 01 09:34:18 2020 +0000 (2020-06-01) |
parents | 6135577f4d08 |
children | f05360619f9e |
line source
1 # SliTaz package receipt.
3 PACKAGE="xvkbd"
4 VERSION="4.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Virtual (graphical) keyboard program for X Window System."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://t-sato.in.coocan.jp/xvkbd/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}$TARBALL"
14 DEPENDS="xorg-libXaw3d xorg-libXp xorg-libXtst"
15 BUILD_DEPENDS="xorg-imake xorg-libXaw-dev xorg-libXaw3d-dev xorg-libXp-dev
16 xorg-libXtst-dev xorg-xproto"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # delete Xaw3d
22 # sed -i '/#define XAW3D/d' Imakefile
23 # xmkmf &&
25 mkdir -p $install/usr/share/applications
27 ./configure \
28 --prefix=/usr \
29 --sysconfdir=/etc/X11 \
30 $CONFIGURE_ARGS &&
31 make &&
32 make install
34 # Add .desktop file
35 cp $stuff/usr/share/applications/xvkbd.desktop \
36 $install/usr/share/applications
38 # Add icon
39 mkdir -p $install/usr/share/icons/hicolor/32x32/apps
40 cp $stuff/usr/share/pixmaps/xvkbd.png \
41 $install/usr/share/icons/hicolor/32x32/apps
43 cp -f $stuff/etc/X11/app-defaults/XVkbd-russian \
44 $install/etc/X11/app-defaults
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cp -a $install/* $fs
51 }
53 post_install()
54 {
55 # .Xdefaults file
56 lang=$(echo $LANG | awk '{FS="_"} {print $1}')
57 find "$1/home" -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults
58 while read line
59 do
60 if ! grep -q "Xvkbd settings" $line
61 then
62 cat >> $line << EOT
64 ! Xvkbd settings
65 !
66 xvkbd*Font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
67 EOT
68 echo "xvkbd.Layout : $lang" >> $line
69 fi
70 done </tmp/listeXdefaults
72 rm -f /tmp/listeXdefaults
73 }