app-editors/neovim-gtk: fix install phase
This commit is contained in:
parent
83386b0d6e
commit
e0958880e1
@ -1,7 +1,7 @@
|
||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
||||
# 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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user