summaryrefslogblamecommitdiff
path: root/user/kuserfeedback/APKBUILD
blob: ce5f10b6bb9c6baaa8923d5226e00a94179b3a79 (plain) (tree)









































                                                                                                                                                                          
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kuserfeedback
pkgver=0.9.90
pkgrel=0
pkgdesc="User feedback agent for KDE"
url="https://www.kde.org/"
arch="all"
options="!check"  # Requires X11.
license="MIT"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev
	qt5-qtsvg-dev qt5-qttools-dev bison flex"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.kde.org/unstable/kuserfeedback/kuserfeedback-$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() {
	# Requires OpenGL accelerated desktop.
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E openglinfosourcetest
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="a4f5ee35d54479d0ed8c8e142c6d600a95f6a5e0179398953ef9e9b439b5f286ca90306577797478d53b07da258070710a442b227d6f70e4f2f372dd13b60aae  kuserfeedback-0.9.90.tar.xz"