gentoo-overlay/media-video/qtcam/qtcam-9999.ebuild

43 lines
900 B
Bash

# 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
domenu "${S}"/Qtcam_16.04.desktop
}