wok diff epdfview-cups/receipt @ rev 19815

mate-polkit: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 02 10:17:19 2017 +0100 (2017-03-02)
parents 9e01bc6321ea
children e3f377fbc5f0
line diff
     1.1 --- a/epdfview-cups/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/epdfview-cups/receipt	Thu Mar 02 10:17:19 2017 +0100
     1.3 @@ -28,24 +28,19 @@
     1.4  	    -e 's/location->values\[0\].string.text/ippGetString(location, 0, NULL)/' \
     1.5  	    -e 's/.*IPP_TAG_KEYWORD.*/    ipp_t *request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES);\n&/' \
     1.6  		src/PrintPter.cxx
     1.7 +	patch -p1 -i $stuff/no-stock-icons.patch
     1.8  	./configure \
     1.9  		--with-cups \
    1.10  		$CONFIGURE_ARGS &&
    1.11  	make &&	make install
    1.12 +	cp -f $stuff/*.desktop $install/usr/share/applications
    1.13  }
    1.14  
    1.15  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.16  genpkg_rules()
    1.17  {
    1.18 -	mkdir -p $fs/usr/share/pixmaps
    1.19 -	cp -a $install/usr/bin $fs/usr
    1.20 -	cp -a $install/usr/share/epdfview $fs/usr/share
    1.21 -	cd $fs/usr/share/pixmaps
    1.22 -	ln -sf /usr/share/epdfview/pixmaps/icon_epdfview-32.png epdfview.png
    1.23 +	cook_copy_files epdfview *.desktop *.xml
    1.24 +	mkdir -p $fs/usr/share/icons/hicolor/48x48/apps
    1.25 +	cp $install/usr/share/epdfview/pixmaps/icon_epdfview-48.png \
    1.26 +		$fs/usr/share/icons/hicolor/48x48/apps/epdfview.png
    1.27  }
    1.28 -
    1.29 -# Pre install commands for Tazpkg.
    1.30 -pre_install()
    1.31 -{
    1.32 -	[ -x "$1/usr/bin/epdfview" ] && yes y | tazpkg remove epdfview
    1.33 -}