wok-next view xvkbd/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | 8e1b2a143eb3 |
children | 5669e8b3be70 |
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="xorg-imake xorg-libXaw-dev xorg-libXp-dev xorg-libXtst-dev \
15 xorg-libXaw3d-dev xorg-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="xorg-libXp xorg-libXtst xorg-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 }