app-editors/neovim-gtk: fix install phase

This commit is contained in:
Julian Ospald 2018-06-16 01:29:03 +02:00
parent 83386b0d6e
commit e0958880e1
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
2 changed files with 30 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# Copyright 2018 Julian Ospald <hasufell@posteo.de> # Copyright 2018 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2 # 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 cargo [ channel=stable ]
require github [ user=daa84 tag="v${PV}" ] require github [ user=daa84 tag="v${PV}" ]
@ -13,9 +13,34 @@ MYOPTIONS=""
BUGS_TO="hasufell@posteo.de" BUGS_TO="hasufell@posteo.de"
src_install() { src_prepare() {
ecargo_install default
install_desktop_entry Exec="nvim-gtk" \ export PREFIX=/usr
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_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
} }