mirror of
https://github.com/gryf/gryf-overlay.git
synced 2026-03-30 09:53:32 +02:00
64 lines
1.5 KiB
Bash
64 lines
1.5 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"
|
|
COMMIT="665f3090183387c1b271948c294c6f6b770c318b"
|
|
# actually, this is latest commit on the GH from 2019-08-12
|
|
SRC_URI="https://github.com/lupoDharkael/${PN}/archive/${COMMIT}.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
|
|
)
|
|
"
|
|
S="${WORKDIR}/${PN}-${COMMIT}"
|
|
|
|
src_prepare(){
|
|
sed -i "s|TAG_VERSION = .*|TAG_VERSION = v0.6.0|" ${PN}.pro
|
|
sed -i "s#icons#pixmaps#" ${PN}.pro
|
|
sed -i "s#^Icon=.*#Icon=${PN}#" "docs/desktopEntry/package/${PN}.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
|
|
}
|