1 # Copyright 2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit desktop qmake-utils xdg-utils
8 DESCRIPTION="Powerful yet simple to use screenshot software"
9 HOMEPAGE="https://flameshot.js.org"
10 SRC_URI="https://github.com/lupoDharkael/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
12 LICENSE="FreeArt GPL-3 Apache-2.0"
14 KEYWORDS="~amd64 ~x86"
20 dev-qt/qtsingleapplication[qt5(+),X]
28 PATCHES=( "${FILESDIR}/${P}-unbundle-qtsingleapplication.patch" )
31 rm -r src/third-party/singleapplication || die
36 eqmake5 "CONFIG+=packaging"
40 emake INSTALL_ROOT="${D}" install
44 xdg_desktop_database_update
46 xdg_mimeinfo_database_update
50 xdg_desktop_database_update
52 xdg_mimeinfo_database_update