wok annotate xvkbd/receipt @ rev 25103
Use archive.org for some broken wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 21 20:15:18 2022 +0000 (2022-06-21) |
parents | 318701ea94ca |
children |
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" |
pascal@24976 | 12 WGET_URL="http://t-sato.in.coocan.jp/xvkbd/$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@24374 | 18 # What is the latest version available today? |
pascal@24374 | 19 current_version() |
pascal@24374 | 20 { |
pascal@24374 | 21 wget -O - http://t-sato.in.coocan.jp/xvkbd/ChangeLog 2>/dev/null | \ |
pascal@24374 | 22 tac | sed '/^Version/!d;s|.*ion ||;s| .*||;q' |
pascal@24374 | 23 } |
pascal@24374 | 24 |
pascal@4000 | 25 # Rules to configure and make the package. |
pascal@4000 | 26 compile_rules() |
pascal@4000 | 27 { |
paul@13470 | 28 # delete Xaw3d |
mojo@23861 | 29 sed -i '/#define XAW3D/d' Imakefile |
mojo@23861 | 30 xmkmf && |
mojo@23861 | 31 sed -i 's/\$(DESTDIR) \$(SHAREDIR)/$(DESTDIR)$(SHAREDIR)/' Makefile |
mojo@23861 | 32 make |
mojo@23861 | 33 mkdir -p $install/usr/share/X11 |
slaxemulator@9725 | 34 make install |
al@18645 | 35 |
al@18645 | 36 # Add .desktop file |
mojo@23861 | 37 mkdir -p $install/usr/share/applications |
Hans-G?nter@23784 | 38 cp $stuff/usr/share/applications/xvkbd.desktop \ |
mojo@23861 | 39 $install/usr/share/applications |
al@18645 | 40 |
al@18645 | 41 # Add icon |
al@18645 | 42 mkdir -p $install/usr/share/icons/hicolor/32x32/apps |
Hans-G?nter@23784 | 43 cp $stuff/usr/share/pixmaps/xvkbd.png \ |
Hans-G?nter@23784 | 44 $install/usr/share/icons/hicolor/32x32/apps |
mojo@23861 | 45 |
mojo@23861 | 46 mkdir -p $install/etc/X11/app-defaults |
mojo@23861 | 47 cp $stuff/etc/X11/app-defaults/XVkbd-russian \ |
mojo@23861 | 48 $install/etc/X11/app-defaults |
al@18645 | 49 |
pascal@4000 | 50 } |
pascal@4000 | 51 |
pascal@4000 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4000 | 53 genpkg_rules() |
pascal@4000 | 54 { |
Hans-G?nter@23784 | 55 cp -a $install/* $fs |
mojo@23861 | 56 rm -fr $fs/usr/lib |
pascal@4000 | 57 } |
pascal@4000 | 58 |
pascal@4000 | 59 post_install() |
al@18645 | 60 { |
pascal@4000 | 61 # .Xdefaults file |
paul@6066 | 62 lang=$(echo $LANG | awk '{FS="_"} {print $1}') |
pascal@18730 | 63 find "$1/home" -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults |
paul@6066 | 64 while read line |
Hans-G?nter@23784 | 65 do |
Hans-G?nter@23784 | 66 if ! grep -q "Xvkbd settings" $line |
Hans-G?nter@23784 | 67 then |
Hans-G?nter@23784 | 68 cat >> $line << EOT |
pascal@4000 | 69 |
paul@4837 | 70 ! Xvkbd settings |
pascal@4000 | 71 ! |
pascal@4000 | 72 xvkbd*Font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1 |
pascal@4000 | 73 EOT |
Hans-G?nter@23784 | 74 echo "xvkbd.Layout : $lang" >> $line |
Hans-G?nter@23784 | 75 fi |
Hans-G?nter@23784 | 76 done </tmp/listeXdefaults |
Hans-G?nter@23784 | 77 |
paul@13470 | 78 rm -f /tmp/listeXdefaults |
pascal@4000 | 79 } |