From ffc77b2f6e0e5e269e738dc9355a0cc83813df98 Mon Sep 17 00:00:00 2001 From: Marcin Deranek Date: Tue, 17 Mar 2020 11:24:19 +0100 Subject: Add desktop icon for iscan --- media-gfx/iscan/iscan-3.62.0.ebuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'media-gfx/iscan/iscan-3.62.0.ebuild') diff --git a/media-gfx/iscan/iscan-3.62.0.ebuild b/media-gfx/iscan/iscan-3.62.0.ebuild index 40180a9..8d40f7e 100644 --- a/media-gfx/iscan/iscan-3.62.0.ebuild +++ b/media-gfx/iscan/iscan-3.62.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit autotools udev +inherit autotools desktop udev xdg-utils DESCRIPTION="EPSON Image Scan v3 for Linux" HOMEPAGE="https://support.epson.net/linux/en/imagescanv3.php" @@ -66,9 +66,16 @@ src_install() { default dodoc lib/devices.conf find "${ED}" -name '*.la' -delete || die + if use gui; then + newicon -s scalable doc/icon.svg "${PN}".svg + make_desktop_entry utsushi "Image Scan" + fi } pkg_postinst() { + use gui && xdg_icon_cache_update elog "If you encounter problems with media-gfx/xsane when scanning (e.g., bad resolution)," elog "please try the built-in GUI and kde-misc/skanlite first before reporting bugs." } + +pkg_postrm() { use gui && xdg_icon_cache_update; } -- cgit v1.2.3