wok-next diff xvkbd/receipt @ rev 18661

python-opengl: cleanup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 03 18:45:29 2015 +0100 (2015-12-03)
parents 54348d3e28ea
children 9e01bc6321ea
line diff
     1.1 --- a/xvkbd/receipt	Sun Nov 29 15:58:15 2015 +0000
     1.2 +++ b/xvkbd/receipt	Thu Dec 03 18:45:29 2015 +0100
     1.3 @@ -10,37 +10,37 @@
     1.4  WEB_SITE="http://homepage3.nifty.com/tsato/xvkbd/"
     1.5  WGET_URL="${WEB_SITE}$TARBALL"
     1.6  
     1.7 -DEPENDS="xorg-libXt xorg-libX11  xorg-xproto xorg-libSM xorg-libXaw \
     1.8 -xorg-libICE xorg-libXp xorg-libXtst  xorg-libXmu xorg-libXpm xorg-libXext \
     1.9 -xorg-libXau xorg-libXdmcp xorg-libXaw3d"
    1.10 -BUILD_DEPENDS="xorg-imake xorg-cf-files xorg-libXt-dev xorg-libX11-dev \
    1.11 -xorg-xproto xorg-libSM-dev xorg-libXaw-dev xorg-libICE-dev xorg-libXp-dev \
    1.12 -xorg-libXtst-dev xorg-xextproto xorg-inputproto xorg-libXmu-dev xorg-libXaw3d-dev"
    1.13 +DEPENDS="xorg-xproto xorg-libXaw xorg-libXp xorg-libXtst xorg-libXaw3d"
    1.14 +BUILD_DEPENDS="xorg-imake xorg-libXaw-dev xorg-libXp-dev xorg-libXtst-dev \
    1.15 +xorg-libXaw3d-dev"
    1.16  
    1.17  # Rules to configure and make the package.
    1.18  compile_rules()
    1.19  {
    1.20 -	cd $src
    1.21 -
    1.22  	# delete Xaw3d
    1.23  	# sed -i '/#define XAW3D/d' Imakefile
    1.24  	xmkmf &&
    1.25  	make install
    1.26 +
    1.27 +	# Add .desktop file
    1.28 +	mkdir -p $install/usr/share/applications
    1.29 +	cp $stuff/usr/share/applications/xvkbd.desktop $install/usr/share/applications
    1.30 +
    1.31 +	# Add icon
    1.32 +	mkdir -p $install/usr/share/icons/hicolor/32x32/apps
    1.33 +	cp $stuff/usr/share/pixmaps/xvkbd.png $install/usr/share/icons/hicolor/32x32/apps
    1.34 +
    1.35 +	cp -f $stuff/etc/X11/app-defaults/XVkbd-russian $install/etc/X11/app-defaults
    1.36  }
    1.37  
    1.38  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.39  genpkg_rules()
    1.40  {
    1.41 -	mkdir -p $fs/usr $fs/etc
    1.42 -	cp -a $install/usr/bin $fs/usr
    1.43 -	cp -a $install/usr/lib $fs/usr
    1.44 -	cp -a $install/etc/X11 $fs/etc
    1.45 -	# Add .desktop file
    1.46 -	cp -a $stuff/* $fs
    1.47 +	cp -a $install/* $fs
    1.48  }
    1.49  
    1.50  post_install()
    1.51 -{ 
    1.52 +{
    1.53  	# .Xdefaults file
    1.54  	lang=$(echo $LANG | awk '{FS="_"} {print $1}')
    1.55  	find $1/home -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults
    1.56 @@ -53,9 +53,8 @@
    1.57  !
    1.58  xvkbd*Font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
    1.59  EOT
    1.60 -echo "xvkbd.Layout : $lang" >> $line	
    1.61 +echo "xvkbd.Layout : $lang" >> $line
    1.62  	fi
    1.63  	done </tmp/listeXdefaults
    1.64  	rm -f /tmp/listeXdefaults
    1.65  }
    1.66 -