From e0958880e12a14201af3d80d7d8d177542bc7f5e Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 16 Jun 2018 01:29:03 +0200 Subject: [PATCH] app-editors/neovim-gtk: fix install phase --- ...xheres-0 => neovim-gtk-0.1.1-r2.exheres-0} | 0 .../app-editors/neovim-gtk/neovim-gtk.exlib | 35 ++++++++++++++++--- 2 files changed, 30 insertions(+), 5 deletions(-) rename packages/app-editors/neovim-gtk/{neovim-gtk-0.1.1-r1.exheres-0 => neovim-gtk-0.1.1-r2.exheres-0} (100%) diff --git a/packages/app-editors/neovim-gtk/neovim-gtk-0.1.1-r1.exheres-0 b/packages/app-editors/neovim-gtk/neovim-gtk-0.1.1-r2.exheres-0 similarity index 100% rename from packages/app-editors/neovim-gtk/neovim-gtk-0.1.1-r1.exheres-0 rename to packages/app-editors/neovim-gtk/neovim-gtk-0.1.1-r2.exheres-0 diff --git a/packages/app-editors/neovim-gtk/neovim-gtk.exlib b/packages/app-editors/neovim-gtk/neovim-gtk.exlib index 4a82cc3..35ae908 100644 --- a/packages/app-editors/neovim-gtk/neovim-gtk.exlib +++ b/packages/app-editors/neovim-gtk/neovim-gtk.exlib @@ -1,7 +1,7 @@ # Copyright 2018 Julian Ospald # Distributed under the terms of the GNU General Public License v2 -require desktop-utils freedesktop-desktop +require freedesktop-desktop gtk-icon-cache require cargo [ channel=stable ] require github [ user=daa84 tag="v${PV}" ] @@ -13,9 +13,34 @@ MYOPTIONS="" BUGS_TO="hasufell@posteo.de" -src_install() { - ecargo_install - install_desktop_entry Exec="nvim-gtk" \ - MimeType="text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;" +src_prepare() { + default + export PREFIX=/usr +} + +src_install() { + ecargo_install + + insinto /usr/share/nvim-gtk + doins -r runtime + + insinto /usr/share/applications + doins desktop/*.desktop + + insinto /usr/share/icons/hicolor/48x48/apps + doins desktop/org.daa.NeovimGtk.png + + insinto /usr/share/icons/hicolor/scalable/apps + doins desktop/org.daa.NeovimGtk.svg +} + +pkg_postinst() { + freedesktop-desktop_update_desktop_database + gtk-icon-cache_pkg_postinst +} + +pkg_postrm() { + freedesktop-desktop_update_desktop_database + gtk-icon-cache_pkg_postrm }