wok view xvkbd/receipt @ rev 24810

libmypaint: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 22 15:59:26 2022 +0000 (2022-03-22)
parents 84337bb7d849
children 1805f71c5d9f
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"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://sources.voidlinux.org/$PACKAGE-$VERSION/$TARBALL"
14 DEPENDS="xorg-libXaw 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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - http://t-sato.in.coocan.jp/xvkbd/ChangeLog 2>/dev/null | \
22 tac | sed '/^Version/!d;s|.*ion ||;s| .*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # delete Xaw3d
29 sed -i '/#define XAW3D/d' Imakefile
30 xmkmf &&
31 sed -i 's/\$(DESTDIR) \$(SHAREDIR)/$(DESTDIR)$(SHAREDIR)/' Makefile
32 make
33 mkdir -p $install/usr/share/X11
34 make install
36 # Add .desktop file
37 mkdir -p $install/usr/share/applications
38 cp $stuff/usr/share/applications/xvkbd.desktop \
39 $install/usr/share/applications
41 # Add icon
42 mkdir -p $install/usr/share/icons/hicolor/32x32/apps
43 cp $stuff/usr/share/pixmaps/xvkbd.png \
44 $install/usr/share/icons/hicolor/32x32/apps
46 mkdir -p $install/etc/X11/app-defaults
47 cp $stuff/etc/X11/app-defaults/XVkbd-russian \
48 $install/etc/X11/app-defaults
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 cp -a $install/* $fs
56 rm -fr $fs/usr/lib
57 }
59 post_install()
60 {
61 # .Xdefaults file
62 lang=$(echo $LANG | awk '{FS="_"} {print $1}')
63 find "$1/home" -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults
64 while read line
65 do
66 if ! grep -q "Xvkbd settings" $line
67 then
68 cat >> $line << EOT
70 ! Xvkbd settings
71 !
72 xvkbd*Font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
73 EOT
74 echo "xvkbd.Layout : $lang" >> $line
75 fi
76 done </tmp/listeXdefaults
78 rm -f /tmp/listeXdefaults
79 }