hasufell-repository/packages/app-editors/neovim-gtk/neovim-gtk.exlib

47 lines
979 B
Bash

# Copyright 2018 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2
require freedesktop-desktop gtk-icon-cache
require cargo [ channel=stable ]
require github [ user=daa84 tag="v${PV}" ]
SUMMARY="Gtk ui for neovim"
HOMEPAGE="https://github.com/daa84/neovim-gtk ${HOMEPAGE}"
LICENCES="GPL-3.0"
MYOPTIONS=""
BUGS_TO="hasufell@posteo.de"
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
}