# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 DESCRIPTION="A GTK based launcher box with bash style auto completion!" HOMEPAGE="https://github.com/wdlkmpx/gmrun" SRC_URI="https://github.com/wdlkmpx/${PN}/releases/download/${PV}/${P}.tar.xz" LICENSE="public-domain ISC" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="xdg" RDEPEND=" dev-libs/glib:2 x11-libs/gtk+:3" DEPEND="${RDEPEND} virtual/pkgconfig" src_prepare() { sed -i 's/\.png//' data/${PN}.desktop || die default } src_configure() { econf $(use_enable xdg) } pkg_postinst() { if use xdg; then ewarn "Configuration file location are changed using xdg flag" ewarn " mv ~/.gmrun_history ~/.config/gmrun_history" ewarn " mv ~/.gmrunrc ~/.config/gmrunrc" ewarn "" ewarn "URL and extension handlers are now .desktop files" fi }