wok-next view xvkbd/receipt @ rev 18253

Add some lang packages for tesseract-ocr (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 03 16:17:09 2015 +0200 (2015-08-03)
parents 2511abf8a53e
children 54348d3e28ea
line source
1 # SliTaz package receipt.
3 PACKAGE="xvkbd"
4 VERSION="3.5"
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-libXt xorg-libX11 xorg-xproto xorg-libSM xorg-libXaw \
14 xorg-libICE xorg-libXp xorg-libXtst xorg-libXmu xorg-libXpm xorg-libXext \
15 xorg-libXau xorg-libXdmcp xorg-libXaw3d"
16 BUILD_DEPENDS="xorg-imake xorg-cf-files xorg-libXt-dev xorg-libX11-dev \
17 xorg-xproto xorg-libSM-dev xorg-libXaw-dev xorg-libICE-dev xorg-libXp-dev \
18 xorg-libXtst-dev xorg-xextproto xorg-inputproto xorg-libXmu-dev xorg-libXaw3d-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
25 # delete Xaw3d
26 # sed -i '/#define XAW3D/d' Imakefile
27 xmkmf &&
28 make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr $fs/etc
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/lib $fs/usr
37 cp -a $install/etc/X11 $fs/etc
38 # Add .desktop file
39 cp -a $stuff/* $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 }