wok diff tazpkg/receipt @ rev 17261

Move separate MIME definitions to the shared-mime-info package.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Oct 22 03:42:23 2014 +0300 (2014-10-22)
parents a10a76a8f97e
children 693b7f5a408b
line diff
     1.1 --- a/tazpkg/receipt	Mon Aug 11 01:56:38 2014 +0200
     1.2 +++ b/tazpkg/receipt	Wed Oct 22 03:42:23 2014 +0300
     1.3 @@ -29,7 +29,6 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 -	cd $src
     1.8  	make && make DESTDIR=$DESTDIR install
     1.9  }
    1.10  
    1.11 @@ -37,19 +36,22 @@
    1.12  {
    1.13  	cp -a $install/* $fs
    1.14  	chown -R root.root $fs
    1.15 +
    1.16  	# Default icon for mimetype (freedesktop standard compliant file
    1.17  	# manager will diplay a tazpkg icon for SliTaz packages).
    1.18  	mkdir -p $fs/usr/share/icons/hicolor/32x32/mimetypes
    1.19 -	cd $fs/usr/share/icons/hicolor/32x32/mimetypes
    1.20 -	ln -s /usr/share/pixmaps/tazpkg.png package-x-tazpkg.png
    1.21 -	ln -s /usr/share/pixmaps/tazpkg.png application-x-tazpkg.png
    1.22 +	ln -s /usr/share/pixmaps/tazpkg.png \
    1.23 +		$fs/usr/share/icons/hicolor/32x32/mimetypes/application-x-tazpkg.png
    1.24 +
    1.25 +	rm -rf $fs/usr/share/mime
    1.26  }
    1.27  
    1.28  post_install()
    1.29  {
    1.30  	# Apply a fix to config file /etc/slitaz/slitaz.conf
    1.31 -	[ -f /etc/slitaz/slitaz.conf ] && sed 's/LOCAL_STATE/LOCALSTATE/'\
    1.32 -		-i /etc/slitaz/slitaz.conf
    1.33 +	[ -f /etc/slitaz/slitaz.conf ] && \
    1.34 +		sed -i 's/LOCAL_STATE/LOCALSTATE/' /etc/slitaz/slitaz.conf
    1.35 +
    1.36  	# Make sure new config is present
    1.37  	if ! grep -q ^NOTIFY_GEOM "$root/etc/slitaz/tazpkg.conf"; then
    1.38  		cat >> "$root/etc/slitaz/tazpkg.conf" << "EOT"