wok annotate xvkbd/receipt @ rev 24205
updated perl-extutils-makemaker (7.44 -> 7.64)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 15:32:10 2021 +0100 (2021-12-31) |
parents | f17d3e9b8ddc |
children | 318701ea94ca |
rev | line source |
---|---|
pascal@4000 | 1 # SliTaz package receipt. |
pascal@4000 | 2 |
pascal@4000 | 3 PACKAGE="xvkbd" |
Hans-G?nter@23784 | 4 VERSION="4.1" |
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" |
mojo@23861 | 9 WEB_SITE="http://t-sato.in.coocan.jp" |
Hans-G?nter@23784 | 10 |
pascal@15579 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
mojo@23862 | 12 WGET_URL="https://sources.voidlinux.org/$PACKAGE-$VERSION/$TARBALL" |
pascal@15579 | 13 |
pascal@23979 | 14 DEPENDS="xorg-libXaw xorg-libXaw3d xorg-libXp xorg-libXtst" |
Hans-G?nter@23784 | 15 BUILD_DEPENDS="xorg-imake xorg-libXaw-dev xorg-libXaw3d-dev xorg-libXp-dev |
Hans-G?nter@23784 | 16 xorg-libXtst-dev xorg-xproto" |
pascal@4000 | 17 |
pascal@4000 | 18 # Rules to configure and make the package. |
pascal@4000 | 19 compile_rules() |
pascal@4000 | 20 { |
paul@13470 | 21 # delete Xaw3d |
mojo@23861 | 22 sed -i '/#define XAW3D/d' Imakefile |
mojo@23861 | 23 xmkmf && |
mojo@23861 | 24 sed -i 's/\$(DESTDIR) \$(SHAREDIR)/$(DESTDIR)$(SHAREDIR)/' Makefile |
mojo@23861 | 25 make |
mojo@23861 | 26 mkdir -p $install/usr/share/X11 |
slaxemulator@9725 | 27 make install |
al@18645 | 28 |
al@18645 | 29 # Add .desktop file |
mojo@23861 | 30 mkdir -p $install/usr/share/applications |
Hans-G?nter@23784 | 31 cp $stuff/usr/share/applications/xvkbd.desktop \ |
mojo@23861 | 32 $install/usr/share/applications |
al@18645 | 33 |
al@18645 | 34 # Add icon |
al@18645 | 35 mkdir -p $install/usr/share/icons/hicolor/32x32/apps |
Hans-G?nter@23784 | 36 cp $stuff/usr/share/pixmaps/xvkbd.png \ |
Hans-G?nter@23784 | 37 $install/usr/share/icons/hicolor/32x32/apps |
mojo@23861 | 38 |
mojo@23861 | 39 mkdir -p $install/etc/X11/app-defaults |
mojo@23861 | 40 cp $stuff/etc/X11/app-defaults/XVkbd-russian \ |
mojo@23861 | 41 $install/etc/X11/app-defaults |
al@18645 | 42 |
pascal@4000 | 43 } |
pascal@4000 | 44 |
pascal@4000 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4000 | 46 genpkg_rules() |
pascal@4000 | 47 { |
Hans-G?nter@23784 | 48 cp -a $install/* $fs |
mojo@23861 | 49 rm -fr $fs/usr/lib |
pascal@4000 | 50 } |
pascal@4000 | 51 |
pascal@4000 | 52 post_install() |
al@18645 | 53 { |
pascal@4000 | 54 # .Xdefaults file |
paul@6066 | 55 lang=$(echo $LANG | awk '{FS="_"} {print $1}') |
pascal@18730 | 56 find "$1/home" -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults |
paul@6066 | 57 while read line |
Hans-G?nter@23784 | 58 do |
Hans-G?nter@23784 | 59 if ! grep -q "Xvkbd settings" $line |
Hans-G?nter@23784 | 60 then |
Hans-G?nter@23784 | 61 cat >> $line << EOT |
pascal@4000 | 62 |
paul@4837 | 63 ! Xvkbd settings |
pascal@4000 | 64 ! |
pascal@4000 | 65 xvkbd*Font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1 |
pascal@4000 | 66 EOT |
Hans-G?nter@23784 | 67 echo "xvkbd.Layout : $lang" >> $line |
Hans-G?nter@23784 | 68 fi |
Hans-G?nter@23784 | 69 done </tmp/listeXdefaults |
Hans-G?nter@23784 | 70 |
paul@13470 | 71 rm -f /tmp/listeXdefaults |
pascal@4000 | 72 } |