wok rev 18645

libzen, xvkbd: simplify depends; xvkdb: process .desktop file, pixmaps -> icons
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Nov 30 03:44:46 2015 +0200 (2015-11-30)
parents bb8fe72f8f3a
children b002163d6d34
files libzen/receipt xvkbd/receipt xvkbd/stuff/usr/share/applications/xvkbd.desktop
line diff
     1.1 --- a/libzen/receipt	Mon Nov 30 02:55:10 2015 +0200
     1.2 +++ b/libzen/receipt	Mon Nov 30 03:44:46 2015 +0200
     1.3 @@ -11,7 +11,7 @@
     1.4  WGET_URL="${WEB_SITE}download/source/$PACKAGE/$VERSION/$TARBALL"
     1.5  
     1.6  DEPENDS=""
     1.7 -BUILD_DEPENDS="libtool automake autoconf"
     1.8 +BUILD_DEPENDS="libtool"
     1.9  
    1.10  # Rules to configure and make the package.
    1.11  compile_rules()
     2.1 --- a/xvkbd/receipt	Mon Nov 30 02:55:10 2015 +0200
     2.2 +++ b/xvkbd/receipt	Mon Nov 30 03:44:46 2015 +0200
     2.3 @@ -10,37 +10,37 @@
     2.4  WEB_SITE="http://homepage3.nifty.com/tsato/xvkbd/"
     2.5  WGET_URL="${WEB_SITE}$TARBALL"
     2.6  
     2.7 -DEPENDS="xorg-libXt xorg-libX11  xorg-xproto xorg-libSM xorg-libXaw \
     2.8 -xorg-libICE xorg-libXp xorg-libXtst  xorg-libXmu xorg-libXpm xorg-libXext \
     2.9 -xorg-libXau xorg-libXdmcp xorg-libXaw3d"
    2.10 -BUILD_DEPENDS="xorg-imake xorg-cf-files xorg-libXt-dev xorg-libX11-dev \
    2.11 -xorg-xproto xorg-libSM-dev xorg-libXaw-dev xorg-libICE-dev xorg-libXp-dev \
    2.12 -xorg-libXtst-dev xorg-xextproto xorg-inputproto xorg-libXmu-dev xorg-libXaw3d-dev"
    2.13 +DEPENDS="xorg-xproto xorg-libXaw xorg-libXp xorg-libXtst xorg-libXaw3d"
    2.14 +BUILD_DEPENDS="xorg-imake xorg-libXaw-dev xorg-libXp-dev xorg-libXtst-dev \
    2.15 +xorg-libXaw3d-dev"
    2.16  
    2.17  # Rules to configure and make the package.
    2.18  compile_rules()
    2.19  {
    2.20 -	cd $src
    2.21 -
    2.22  	# delete Xaw3d
    2.23  	# sed -i '/#define XAW3D/d' Imakefile
    2.24  	xmkmf &&
    2.25  	make install
    2.26 +
    2.27 +	# Add .desktop file
    2.28 +	mkdir -p $install/usr/share/applications
    2.29 +	cp $stuff/usr/share/applications/xvkbd.desktop $install/usr/share/applications
    2.30 +
    2.31 +	# Add icon
    2.32 +	mkdir -p $install/usr/share/icons/hicolor/32x32/apps
    2.33 +	cp $stuff/usr/share/pixmaps/xvkbd.png $install/usr/share/icons/hicolor/32x32/apps
    2.34 +
    2.35 +	cp -f $stuff/etc/X11/app-defaults/XVkbd-russian $install/etc/X11/app-defaults
    2.36  }
    2.37  
    2.38  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.39  genpkg_rules()
    2.40  {
    2.41 -	mkdir -p $fs/usr $fs/etc
    2.42 -	cp -a $install/usr/bin $fs/usr
    2.43 -	cp -a $install/usr/lib $fs/usr
    2.44 -	cp -a $install/etc/X11 $fs/etc
    2.45 -	# Add .desktop file
    2.46 -	cp -a $stuff/* $fs
    2.47 +	cp -a $install/* $fs
    2.48  }
    2.49  
    2.50  post_install()
    2.51 -{ 
    2.52 +{
    2.53  	# .Xdefaults file
    2.54  	lang=$(echo $LANG | awk '{FS="_"} {print $1}')
    2.55  	find $1/home -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults
    2.56 @@ -53,9 +53,8 @@
    2.57  !
    2.58  xvkbd*Font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
    2.59  EOT
    2.60 -echo "xvkbd.Layout : $lang" >> $line	
    2.61 +echo "xvkbd.Layout : $lang" >> $line
    2.62  	fi
    2.63  	done </tmp/listeXdefaults
    2.64  	rm -f /tmp/listeXdefaults
    2.65  }
    2.66 -
     3.1 --- a/xvkbd/stuff/usr/share/applications/xvkbd.desktop	Mon Nov 30 02:55:10 2015 +0200
     3.2 +++ b/xvkbd/stuff/usr/share/applications/xvkbd.desktop	Mon Nov 30 03:44:46 2015 +0200
     3.3 @@ -1,11 +1,12 @@
     3.4  [Desktop Entry]
     3.5 -Encoding=UTF-8
     3.6 +Type=Application
     3.7  Name=Virtual keyboard
     3.8  Name[pt]=Teclado Virtual
     3.9  Name[pt_BR]=Teclado Virtual
    3.10 +Name[ru]=Виртуальная клавиатура
    3.11 +Name[uk]=Віртуальна клавіатура
    3.12  GenericName=Virtual Keyboard
    3.13  Comment=Virtual Keyboard for X Window System
    3.14  Exec=xvkbd
    3.15  Icon=xvkbd
    3.16 -Type=Application
    3.17  Categories=GTK;Utility;