aboutsummaryrefslogtreecommitdiffstats
path: root/community/umbrello/APKBUILD
blob: 4d564f92c934bbddce43e9bebc1d0945c009374e (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
32
33
34
35
36
37
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=umbrello
pkgver=20.12.1
pkgrel=0
arch="all !armhf !mips !mips64 !s390x" # Blocked by extra-cmake-modules, qt5-qtwebkit and rust
url="https://umbrello.kde.org/"
pkgdesc="GUI for diagramming Unified Modelling Language (UML)"
license="GPL-2.0-or-later AND LGPL-2.0-or-later AND GFDL-1.2-only"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtwebkit-dev karchive-dev kcompletion-dev kconfig-dev kcoreaddons-dev kcrash-dev kdoctools-dev ki18n-dev kiconthemes-dev kdelibs4support-dev kio-dev ktexteditor-dev kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev kitemmodels-dev"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/release-service/$pkgver/src/umbrello-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

case "$CARCH" in
	ppc64le|armv7) options="!check";; # FIXME: testsuite fails
esac

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

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}

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

sha512sums="a311dc78b99487c17801306bf6a9130ca2b63894ea94b42aa319b95362c759892b2e9804a91d12c51161027f60f83da82956d9402c9643a7f374db174e96ab40  umbrello-20.12.1.tar.xz"