summaryrefslogblamecommitdiff
path: root/user/kdebugsettings/APKBUILD
blob: bb267bf33fd838f04e0f02dbb1558e57921dbd79 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14


                                                  
              









                                                                            
                                                                                                  
























                                                                                          
                                                                                                                                                                            
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kdebugsettings
pkgver=22.04.2
pkgrel=0
pkgdesc="Set KDE debug settings"
url="https://kde.org/applications/development/org.kde.kdebugsettings"
arch="all"
license="LGPL-2.1+"
depends=""
makedepends="qt5-qtbase-dev cmake extra-cmake-modules kcompletion-dev
	kconfig-dev kcoreaddons-dev kdbusaddons-dev ki18n-dev kitemviews-dev
	kwidgetsaddons-dev"
subpackages="$pkgname-lang"
source="https://download.kde.org/stable/release-service/$pkgver/src/kdebugsettings-$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="5fff45b54253396760cfc9b9ded0a242afaeafb17fc6e61c39ab433ec6f877d105491a8a313298819273bc54797b78993a0003867ed20905fce53431a4799fde  kdebugsettings-22.04.2.tar.xz"