wok-next annotate xvkbd/receipt @ rev 21722
efivar: typo in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 01 10:31:46 2020 +0000 (2020-09-01) |
parents | d5aab818505e |
children |
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" |
al@21020 | 6 SHORT_DESC="Virtual (graphical) keyboard program for X Window System" |
pascal@4000 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL2" |
al@21020 | 9 WEB_SITE="http://t-sato.in.coocan.jp/xvkbd/" |
al@21020 | 10 |
pascal@15579 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@15579 | 12 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@15579 | 13 |
al@21078 | 14 BUILD_DEPENDS="imake libxaw-dev libxp-dev libxtst-dev \ |
al@21078 | 15 libxaw3d-dev xorgproto" |
pascal@4000 | 16 |
al@21020 | 17 compile_rules() { |
paul@13470 | 18 # delete Xaw3d |
paul@13938 | 19 # sed -i '/#define XAW3D/d' Imakefile |
pascal@4000 | 20 xmkmf && |
slaxemulator@9725 | 21 make install |
al@18645 | 22 |
al@18645 | 23 # Add .desktop file |
al@18645 | 24 mkdir -p $install/usr/share/applications |
al@18645 | 25 cp $stuff/usr/share/applications/xvkbd.desktop $install/usr/share/applications |
al@18645 | 26 |
al@18645 | 27 # Add icon |
al@18645 | 28 mkdir -p $install/usr/share/icons/hicolor/32x32/apps |
al@18645 | 29 cp $stuff/usr/share/pixmaps/xvkbd.png $install/usr/share/icons/hicolor/32x32/apps |
al@18645 | 30 |
al@18645 | 31 cp -f $stuff/etc/X11/app-defaults/XVkbd-russian $install/etc/X11/app-defaults |
pascal@4000 | 32 } |
pascal@4000 | 33 |
al@21020 | 34 genpkg_rules() { |
al@18645 | 35 cp -a $install/* $fs |
al@21078 | 36 DEPENDS="libxp libxtst libxaw3d" |
pascal@4000 | 37 } |
pascal@4000 | 38 |
al@21020 | 39 post_install() { |
pascal@4000 | 40 # .Xdefaults file |
paul@6066 | 41 lang=$(echo $LANG | awk '{FS="_"} {print $1}') |
pascal@18730 | 42 find "$1/home" -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults |
al@21020 | 43 |
al@21020 | 44 while read line; do |
al@21020 | 45 if ! grep -q "Xvkbd settings" $line; then |
al@21020 | 46 cat >> $line << EOT |
pascal@4000 | 47 |
paul@4837 | 48 ! Xvkbd settings |
pascal@4000 | 49 ! |
pascal@4000 | 50 xvkbd*Font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1 |
pascal@4000 | 51 EOT |
al@21020 | 52 echo "xvkbd.Layout : $lang" >> $line |
al@21020 | 53 fi |
paul@6066 | 54 done </tmp/listeXdefaults |
paul@13470 | 55 rm -f /tmp/listeXdefaults |
pascal@4000 | 56 } |