diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-17 19:04:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-17 19:04:28 +0100 |
commit | 514d1bbe260df2521fe60f1a3ec87cfcfde1a829 (patch) | |
tree | 555c194dbeb0fb2ac4ad3cde7c0f6a80fd330ce2 /www-client/surf/surf-9999.ebuild | |
parent | 4df3bf9762850b34cd1ead5c80374d1a0fc3362e (diff) |
gentoo resync : 17.07.2021
Diffstat (limited to 'www-client/surf/surf-9999.ebuild')
-rw-r--r-- | www-client/surf/surf-9999.ebuild | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/www-client/surf/surf-9999.ebuild b/www-client/surf/surf-9999.ebuild index 2b48a07f1c22..9dce31f41287 100644 --- a/www-client/surf/surf-9999.ebuild +++ b/www-client/surf/surf-9999.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit savedconfig toolchain-funcs +inherit savedconfig toolchain-funcs desktop xdg DESCRIPTION="a simple web browser based on WebKit/GTK+" HOMEPAGE="https://surf.suckless.org/" @@ -73,4 +73,25 @@ src_install() { fi save_config config.h + + newicon "${S}"/"${PN}".png "${PN}".png + + local mime_types="text/html;text/xml;application/xhtml+xml;" + mime_types+="x-scheme-handler/http;x-scheme-handler/https;" + make_desktop_entry \ + "surf" \ + "Surf" \ + "surf" \ + "Network;WebBrowser" \ + "MimeType=${mime_types}\nStartupWMClass=surf" +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update } |