# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python3_{6,7} ) inherit desktop distutils-r1 DESCRIPTION="Application launcher for Linux" HOMEPAGE="https://ulauncher.io" if [[ ${PV} == 9999 ]];then inherit git-r3 SRC_URI="" KEYWORDS="" EGIT_REPO_URI="https://github.com/Ulauncher/${PN^}.git" else SRC_URI="https://github.com/Ulauncher/${PN^}/releases/download/${PV}/${PN}_${PV}.tar.gz" KEYWORDS="~amd64 ~x86" S="${WORKDIR}/${PN}" fi LICENSE="GPL-3" SLOT="0" PYTHON_REQ_USE="sqlite" DEPEND=" dev-python/python-distutils-extra[${PYTHON_USEDEP}] " RDEPEND="${DEPEND} dev-python/dbus-python[${PYTHON_USEDEP}] dev-python/pygobject:3[${PYTHON_USEDEP}] dev-python/pyinotify[${PYTHON_USEDEP}] dev-python/python-levenshtein[${PYTHON_USEDEP}] dev-python/pyxdg[${PYTHON_USEDEP}] dev-python/websocket-client[${PYTHON_USEDEP}] dev-libs/gobject-introspection:= dev-libs/libappindicator:3 dev-libs/keybinder:3 net-libs/webkit-gtk:4/37 " BDEPEND="${PYTHON_DEPS}" # Like src_install, but executed once per Python version python_install(){ # Need to manually install this first into the Python-specific root, as per upstream Arch PKGBUILD: https://github.com/Ulauncher/Ulauncher/blob/dev/PKGBUILD.template#L32 insinto "_${EPYTHON}/usr/share/applications" doins "${WORKDIR}/ulauncher/build/share/applications/ulauncher.desktop" # Now we can call the super impl distutils-r1_python_install } src_install(){ distutils-r1_src_install domenu build/share/applications/${PN}.desktop }