diff options
Diffstat (limited to 'app-misc/nnn/nnn-3.6.ebuild')
-rw-r--r-- | app-misc/nnn/nnn-3.6.ebuild | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/app-misc/nnn/nnn-3.6.ebuild b/app-misc/nnn/nnn-3.6.ebuild index 90a0ed062b70..0bd65a6f5bf1 100644 --- a/app-misc/nnn/nnn-3.6.ebuild +++ b/app-misc/nnn/nnn-3.6.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit bash-completion-r1 toolchain-funcs +inherit bash-completion-r1 toolchain-funcs xdg-utils DESCRIPTION="The missing terminal file browser for X" HOMEPAGE="https://github.com/jarun/nnn" @@ -21,13 +21,12 @@ src_prepare() { default tc-export CC sed -i -e '/install: all/install:/' Makefile || die "sed failed" - } src_install() { - emake PREFIX="/usr" DESTDIR="${D}" install + emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install - emake PREFIX="/usr" DESTDIR="${D}" install-desktop + emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install-desktop newbashcomp misc/auto-completion/bash/nnn-completion.bash nnn @@ -39,3 +38,11 @@ src_install() { einstalldocs } + +pkg_postinst() { + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_desktop_database_update +} |