# 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
}

pkg_postinst() {
    freedesktop-desktop_update_desktop_database
    gtk-icon-cache_pkg_postinst
}

pkg_postrm() {
    freedesktop-desktop_update_desktop_database
    gtk-icon-cache_pkg_postrm
}