wok-next view xvkbd/receipt @ rev 21722

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
parents d5aab818505e
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xvkbd"
4 VERSION="3.7"
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 BUILD_DEPENDS="imake libxaw-dev libxp-dev libxtst-dev \
15 libxaw3d-dev xorgproto"
17 compile_rules() {
18 # delete Xaw3d
19 # sed -i '/#define XAW3D/d' Imakefile
20 xmkmf &&
21 make install
23 # Add .desktop file
24 mkdir -p $install/usr/share/applications
25 cp $stuff/usr/share/applications/xvkbd.desktop $install/usr/share/applications
27 # Add icon
28 mkdir -p $install/usr/share/icons/hicolor/32x32/apps
29 cp $stuff/usr/share/pixmaps/xvkbd.png $install/usr/share/icons/hicolor/32x32/apps
31 cp -f $stuff/etc/X11/app-defaults/XVkbd-russian $install/etc/X11/app-defaults
32 }
34 genpkg_rules() {
35 cp -a $install/* $fs
36 DEPENDS="libxp libxtst libxaw3d"
37 }
39 post_install() {
40 # .Xdefaults file
41 lang=$(echo $LANG | awk '{FS="_"} {print $1}')
42 find "$1/home" -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults
44 while read line; do
45 if ! grep -q "Xvkbd settings" $line; then
46 cat >> $line << EOT
48 ! Xvkbd settings
49 !
50 xvkbd*Font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
51 EOT
52 echo "xvkbd.Layout : $lang" >> $line
53 fi
54 done </tmp/listeXdefaults
55 rm -f /tmp/listeXdefaults
56 }