1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-01-06 13:54:23 +01:00
Files
gryf-overlay/media-gfx/flameshot/flameshot-0.6.0.ebuild
2019-09-22 08:53:59 +02:00

63 lines
1.4 KiB
Bash

# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit qmake-utils toolchain-funcs xdg-utils
DESCRIPTION="Powerful yet simple to use screenshot software for GNU/Linux"
HOMEPAGE="https://flameshot.js.org"
SRC_URI="https://github.com/lupoDharkael/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
LICENSE="FreeArt GPL-3+ Apache-2.0"
SLOT="0"
IUSE="kde"
DEPEND="
>=dev-qt/qtsvg-5.3.0:5
>=dev-qt/qtcore-5.3.0:5
>=dev-qt/qtdbus-5.3.0:5
>=dev-qt/qtnetwork-5.3.0:5
>=dev-qt/qtwidgets-5.3.0:5
>=dev-qt/linguist-tools-5.3.0:5
"
RDEPEND="${DEPEND}
kde? (
kde-plasma/plasma-desktop:5
kde-frameworks/kglobalaccel:5
)
"
src_prepare(){
sed -i "s|TAG_VERSION = .*|TAG_VERSION = v${PV}|" ${PN}.pro
sed -i "s#icons#pixmaps#" ${PN}.pro
sed -i "s#^Icon=.*#Icon=${PN}#" "docs/desktopEntry/package/${PN}.desktop" \
"snap/gui/${PN}.desktop" \
"snap/gui/${PN}-init.desktop"
default_src_prepare
}
src_configure(){
if tc-is-gcc && ver_test "$(gcc-version)" -lt 4.9.2 ;then
die "You need at least GCC 4.9.2 to build this package"
fi
eqmake5 CONFIG+=packaging
}
src_install(){
INSTALL_ROOT="${D}" default_src_install
if use kde; then
insinto /usr/share/config
newins docs/shortcuts-config/${PN}-shortcuts-kde ${PN}rc
fi
}
pkg_postinst(){
xdg_desktop_database_update
}
pkg_postrm(){
xdg_desktop_database_update
}