aboutsummaryrefslogtreecommitdiffstats
path: root/community/extra-cmake-modules/APKBUILD
blob: 012fac182cdb7aa4379cdccd31bd9f49ab323313 (plain)
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
# Contributor: k0r10n <k0r10n.dev@gmail.com>
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=extra-cmake-modules
pkgver=5.59.0
pkgrel=0
pkgdesc="Extra CMake modules"
url="https://projects.kde.org/projects/kdesupport/extra-cmake-modules"
arch="noarch"
license="BSD-3-Clause"
depends="cmake"
makedepends="py-sphinx"
checkdepends="qt5-qtbase-dev qt5-qtquickcontrols2-dev"
subpackages="$pkgname-doc"
source="http://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz"

build() {
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_TESTING=ON
	make
}

check() {
	# Broken tests
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "(KDEFetchTranslations|KDEInstallDirsTest.relative_or_absolute_usr|KDEInstallDirsTest.relative_or_absolute_qt)"
}

package() {
	DESTDIR="$pkgdir" make install/fast

	install -Dm644 COPYING-CMAKE-SCRIPTS \
		"$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="fcd57e78e0810408c6f7ef1f9d5d790a156ac473c0ff0fbfe4d7959367a825a210504dc1cf34024fdf677fdfe7144e18c594b8969c5333cacd2940cd7930deb8  extra-cmake-modules-5.59.0.tar.xz"