wok-next view xvkbd/receipt @ rev 19595

Up linux (4.9.4)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jan 21 17:27:31 2017 +0200 (2017-01-21)
parents 9e01bc6321ea
children f99935f1778a
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://homepage3.nifty.com/tsato/xvkbd/"
11 WGET_URL="${WEB_SITE}$TARBALL"
13 DEPENDS="xorg-libXp xorg-libXtst xorg-libXaw3d"
14 BUILD_DEPENDS="xorg-imake xorg-libXaw-dev xorg-libXp-dev xorg-libXtst-dev \
15 xorg-libXaw3d-dev xorg-xproto"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # delete Xaw3d
21 # sed -i '/#define XAW3D/d' Imakefile
22 xmkmf &&
23 make install
25 # Add .desktop file
26 mkdir -p $install/usr/share/applications
27 cp $stuff/usr/share/applications/xvkbd.desktop $install/usr/share/applications
29 # Add icon
30 mkdir -p $install/usr/share/icons/hicolor/32x32/apps
31 cp $stuff/usr/share/pixmaps/xvkbd.png $install/usr/share/icons/hicolor/32x32/apps
33 cp -f $stuff/etc/X11/app-defaults/XVkbd-russian $install/etc/X11/app-defaults
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/* $fs
40 }
42 post_install()
43 {
44 # .Xdefaults file
45 lang=$(echo $LANG | awk '{FS="_"} {print $1}')
46 find "$1/home" -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults
47 while read line
48 do
49 if ! grep -q "Xvkbd settings" $line; then
50 cat >> $line << EOT
52 ! Xvkbd settings
53 !
54 xvkbd*Font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
55 EOT
56 echo "xvkbd.Layout : $lang" >> $line
57 fi
58 done </tmp/listeXdefaults
59 rm -f /tmp/listeXdefaults
60 }