blob: 6d6694b83b29d8e9170281ef82fff96a3256f3d6 (
plain) (
tree)
|
|
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kamoso
pkgver=22.04.2
pkgrel=0
pkgdesc="KDE camera software"
url="https://kde.org/applications/multimedia/org.kde.kamoso"
arch="all"
options="!check" # Requires GLX GPU.
license="GPL-2.0+"
depends="gst-plugins-base qt5-qtgraphicaleffects qt5-qtquickcontrols
qt5-qtquickcontrols2"
makedepends="qt5-qtbase-dev qt5-qtdeclarative-dev cmake extra-cmake-modules
kauth-dev kcodecs-dev kcompletion-dev kconfig-dev kconfigwidgets-dev
kcoreaddons-dev kdoctools-dev ki18n-dev kio-dev kitemviews-dev
kjobwidgets-dev knotifications-dev kservice-dev kwidgetsaddons-dev
kwindowsystem-dev kxmlgui-dev purpose-dev solid-dev gstreamer-dev
gst-plugins-base-dev kirigami2-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/release-service/$pkgver/src/kamoso-$pkgver.tar.xz"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS} \
.
make
}
check() {
QT_QPA_PLATFORM=offscreen CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="3c294665fd6ebf354a04b4c4ab276338ebb925913bc5f82cc78d7e322d1e723b96d064402419e9a2a5f73b9409b11f2ccdd50e3bd34d09bd5d6d1a01c36fa509 kamoso-22.04.2.tar.xz"
|