add media-video/qtcam package

This commit is contained in:
2024-04-05 13:36:03 +03:00
parent 97682afe3d
commit 8f4c38eb05
4 changed files with 2604 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop qmake-utils git-r3
DESCRIPTION="Qt Quick Based Camera Application"
HOMEPAGE="http://www.e-consystems.com/opensource-linux-webcam-software-application.asp"
EGIT_REPO_URI="https://github.com/econsysqtcam/qtcam.git"
LICENSE="GPL-3"
SLOT="0"
DEPEND="dev-qt/qtdeclarative:5
dev-qt/qtmultimedia:5
media-video/ffmpeg
virtual/libusb"
RDEPEND="${DEPEND}"
BDEPEND="app-arch/dpkg
sys-apps/lsb-release"
S="${S}/src"
src_prepare() {
default
sed -i 's|target.path = /usr/|target.path = /usr/share/|' qtcam.pro
}
src_configure() {
eqmake5 PREFIX="${EPREFIX}"/usr
}
src_install() {
emake INSTALL_ROOT="${D}" install
dobin "${D}"/usr/share/Qtcam
rm -f "${D}"/usr/share/Qtcam
insinto /usr/share
doins -r "${D}"/usr/share/qml
domenu "${S}"/Qtcam_16.04.desktop
}