wok-current annotate xvkbd/receipt @ rev 22019

linld: ipxe support (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 19 21:09:13 2019 +0200 (2019-10-19)
parents c38559793ba8
children 3f3fd3b3d91f
rev   line source
pascal@4000 1 # SliTaz package receipt.
pascal@4000 2
pascal@4000 3 PACKAGE="xvkbd"
paul@18639 4 VERSION="3.7"
pascal@4000 5 CATEGORY="x-window"
paul@4837 6 SHORT_DESC="Virtual (graphical) keyboard program for X Window System."
pascal@4000 7 MAINTAINER="paul@slitaz.org"
pascal@15579 8 LICENSE="GPL2"
pascal@15579 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20679 10 WEB_SITE="http://t-sato.in.coocan.jp/xvkbd/"
pascal@15579 11 WGET_URL="${WEB_SITE}$TARBALL"
pascal@15579 12
psychomaniak@19437 13 DEPENDS="xorg-libXp xorg-libXtst xorg-libXaw3d"
al@18645 14 BUILD_DEPENDS="xorg-imake xorg-libXaw-dev xorg-libXp-dev xorg-libXtst-dev \
psychomaniak@19437 15 xorg-libXaw3d-dev xorg-xproto"
pascal@4000 16
pascal@4000 17 # Rules to configure and make the package.
pascal@4000 18 compile_rules()
pascal@4000 19 {
paul@13470 20 # delete Xaw3d
paul@13938 21 # sed -i '/#define XAW3D/d' Imakefile
pascal@4000 22 xmkmf &&
slaxemulator@9725 23 make install
al@18645 24
al@18645 25 # Add .desktop file
al@18645 26 mkdir -p $install/usr/share/applications
al@18645 27 cp $stuff/usr/share/applications/xvkbd.desktop $install/usr/share/applications
al@18645 28
al@18645 29 # Add icon
al@18645 30 mkdir -p $install/usr/share/icons/hicolor/32x32/apps
al@18645 31 cp $stuff/usr/share/pixmaps/xvkbd.png $install/usr/share/icons/hicolor/32x32/apps
al@18645 32
al@18645 33 cp -f $stuff/etc/X11/app-defaults/XVkbd-russian $install/etc/X11/app-defaults
pascal@4000 34 }
pascal@4000 35
pascal@4000 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4000 37 genpkg_rules()
pascal@4000 38 {
al@18645 39 cp -a $install/* $fs
pascal@4000 40 }
pascal@4000 41
pascal@4000 42 post_install()
al@18645 43 {
pascal@4000 44 # .Xdefaults file
paul@6066 45 lang=$(echo $LANG | awk '{FS="_"} {print $1}')
pascal@18730 46 find "$1/home" -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults
paul@6066 47 while read line
paul@6066 48 do
paul@6066 49 if ! grep -q "Xvkbd settings" $line; then
paul@6066 50 cat >> $line << EOT
pascal@4000 51
paul@4837 52 ! Xvkbd settings
pascal@4000 53 !
pascal@4000 54 xvkbd*Font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
pascal@4000 55 EOT
al@18645 56 echo "xvkbd.Layout : $lang" >> $line
paul@6066 57 fi
paul@6066 58 done </tmp/listeXdefaults
paul@13470 59 rm -f /tmp/listeXdefaults
pascal@4000 60 }