wok rev 23784

updated xvkbd (3.7 -> 4.1)
author Hans-G?nter Theisgen
date Thu May 21 14:49:06 2020 +0100 (10 months ago)
parents 983b132bc56b
children 3a53397fd362
files xvkbd/receipt
line diff
     1.1 --- a/xvkbd/receipt	Thu May 21 14:35:48 2020 +0100
     1.2 +++ b/xvkbd/receipt	Thu May 21 14:49:06 2020 +0100
     1.3 @@ -1,42 +1,53 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="xvkbd"
     1.7 -VERSION="3.7"
     1.8 +VERSION="4.1"
     1.9  CATEGORY="x-window"
    1.10  SHORT_DESC="Virtual (graphical) keyboard program for X Window System."
    1.11  MAINTAINER="paul@slitaz.org"
    1.12  LICENSE="GPL2"
    1.13 +WEB_SITE="http://t-sato.in.coocan.jp/xvkbd/"
    1.14 +
    1.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16 -WEB_SITE="http://t-sato.in.coocan.jp/xvkbd/"
    1.17  WGET_URL="${WEB_SITE}$TARBALL"
    1.18  
    1.19 -DEPENDS="xorg-libXp xorg-libXtst xorg-libXaw3d"
    1.20 -BUILD_DEPENDS="xorg-imake xorg-libXaw-dev xorg-libXp-dev xorg-libXtst-dev \
    1.21 -xorg-libXaw3d-dev xorg-xproto"
    1.22 +DEPENDS="xorg-libXaw3d xorg-libXp xorg-libXtst"
    1.23 +BUILD_DEPENDS="xorg-imake xorg-libXaw-dev xorg-libXaw3d-dev xorg-libXp-dev 
    1.24 +	xorg-libXtst-dev xorg-xproto"
    1.25  
    1.26  # Rules to configure and make the package.
    1.27  compile_rules()
    1.28  {
    1.29  	# delete Xaw3d
    1.30  	# sed -i '/#define XAW3D/d' Imakefile
    1.31 -	xmkmf &&
    1.32 +#	xmkmf &&
    1.33 +
    1.34 +	mkdir -p $install/usr/share/applications
    1.35 +
    1.36 +	./configure			\
    1.37 +		--prefix=/usr		\
    1.38 +		--sysconfdir=/etc/X11	\
    1.39 +		$CONFIGURE_ARGS &&
    1.40 +	make &&
    1.41  	make install
    1.42  
    1.43  	# Add .desktop file
    1.44 -	mkdir -p $install/usr/share/applications
    1.45 -	cp $stuff/usr/share/applications/xvkbd.desktop $install/usr/share/applications
    1.46 +	cp $stuff/usr/share/applications/xvkbd.desktop \
    1.47 +			$install/usr/share/applications
    1.48  
    1.49  	# Add icon
    1.50  	mkdir -p $install/usr/share/icons/hicolor/32x32/apps
    1.51 -	cp $stuff/usr/share/pixmaps/xvkbd.png $install/usr/share/icons/hicolor/32x32/apps
    1.52 +	cp $stuff/usr/share/pixmaps/xvkbd.png \
    1.53 +		$install/usr/share/icons/hicolor/32x32/apps
    1.54  
    1.55 -	cp -f $stuff/etc/X11/app-defaults/XVkbd-russian $install/etc/X11/app-defaults
    1.56 +	cp -f $stuff/etc/X11/app-defaults/XVkbd-russian \
    1.57 +		$install/etc/X11/app-defaults
    1.58  }
    1.59  
    1.60  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.61  genpkg_rules()
    1.62  {
    1.63 -	cp -a $install/* $fs
    1.64 +	cp -a $install/*	$fs
    1.65  }
    1.66  
    1.67  post_install()
    1.68 @@ -45,16 +56,18 @@
    1.69  	lang=$(echo $LANG | awk '{FS="_"} {print $1}')
    1.70  	find "$1/home" -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults
    1.71  	while read line
    1.72 -	do
    1.73 -	if ! grep -q "Xvkbd settings" $line; then
    1.74 -	cat >> $line << EOT
    1.75 +	  do
    1.76 +		if ! grep -q "Xvkbd settings" $line
    1.77 +		  then
    1.78 +			cat >> $line << EOT
    1.79  
    1.80  ! Xvkbd settings
    1.81  !
    1.82  xvkbd*Font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
    1.83  EOT
    1.84 -echo "xvkbd.Layout : $lang" >> $line
    1.85 -	fi
    1.86 -	done </tmp/listeXdefaults
    1.87 +			echo "xvkbd.Layout : $lang" >> $line
    1.88 +		fi
    1.89 +	  done </tmp/listeXdefaults
    1.90 +
    1.91  	rm -f /tmp/listeXdefaults
    1.92  }