APKBUILD 1.24 KB
Newer Older
Bart Ribbers's avatar
Bart Ribbers committed
1 2 3
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kactivities
4
pkgver=5.65.0
Leo's avatar
Leo committed
5
pkgrel=1
6
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
Bart Ribbers's avatar
Bart Ribbers committed
7 8 9 10 11 12
pkgdesc="Core components for the KDE's Activities"
url="https://community.kde.org/Frameworks"
license="GPL-2.0-or-later AND LGPL-2.1-or-later AND (LGPL-2.1-only OR LGPL-3.0-only)"
depends="qt5-qtbase-sqlite"
depends_dev="kcoreaddons-dev kconfig-dev kwindowsystem-dev qt5-qtdeclarative-dev"
makedepends="$depends_dev extra-cmake-modules boost doxygen qt5-qttools-dev boost-dev"
13
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kactivities-$pkgver.tar.xz"
Bart Ribbers's avatar
Bart Ribbers committed
14 15 16 17
subpackages="$pkgname-dev $pkgname-libs $pkgname-doc"

prepare() {
	default_prepare
18

Bart Ribbers's avatar
Bart Ribbers committed
19 20 21 22 23 24
	mkdir "$builddir"/build
}

build() {
	cd "$builddir"/build
	cmake "$builddir" \
25
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
Bart Ribbers's avatar
Bart Ribbers committed
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_QCH=ON
	make
}

check() {
	cd "$builddir"/build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	cd "$builddir"/build
	DESTDIR="$pkgdir" make install
}
41
sha512sums="b13b6da5a725ba7380d61bbf17772dced3e7a57c25f27bb0fcf00829359456c8db3a2863462016a34d3e02aa9da4747450496b4ab456b4d13d709f4bd3193a2e  kactivities-5.65.0.tar.xz"