summaryrefslogblamecommitdiff
path: root/user/kamoso/APKBUILD
blob: abd5fda3594338762451864c7199969ff918f580 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                  
              


                                                            
                                     


































                                                                                          
                                                                                                                                                                    
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kamoso
pkgver=20.08.1
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="4f28f112906c2fc888e723b9d3809dfc78cbb2ffd0ae4c14260c512ef48f63d574b5e5afbd0f183b1cfd958fd6323a006102a0eaa0f3ea44c4acf0e333bfa4aa  kamoso-20.08.1.tar.xz"