aboutsummaryrefslogtreecommitdiffstats
path: root/community/kdialog/APKBUILD
blob: aedded42426d1ab52e2b2264eecb06a05667a737 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kdialog
pkgver=20.12.2
pkgrel=0
arch="all !armhf !mips !mips64 !s390x" # armhf blocked by extra-cmake-modules, everything else blocked by rust
url="https://www.kde.org/"
pkgdesc="A utility for displaying dialog boxes from shell scripts"
license="GPL-2.0-or-later AND GFDL-1.2-only"
makedepends="extra-cmake-modules qt5-qtbase-dev ktextwidgets-dev knotifications-dev kguiaddons-dev kiconthemes-dev kwindowsystem-dev kio-dev kdbusaddons-dev"
source="https://download.kde.org/stable/release-service/$pkgver/src/kdialog-$pkgver.tar.xz"
subpackages="$pkgname-lang"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="eacd67b0b6bb891c1f30bfe7dff4af67f3337846bb91c8a33b8f984434c114b7b072ddbb1bb48ec99d96cba24c02ad654dae2bb0266cfcd5c0d74f1341a99570  kdialog-20.12.2.tar.xz"