projects/aports·blob master · refs

69 lines · 1.7 KiB

1# The group tag is just to easily find this APKBUILD by some scripts for automation
2# group=kde-plasma
3maintainer="team/kde <[email protected]>"
4pkgname=plasma-activities
5pkgver=6.8.0
6pkgrel=0
7# armhf blocked by qt6-qtdeclarative
8arch="all !armhf"
9pkgdesc="Core components for the KDE's Activities"
10url="https://invent.kde.org/plasma/plasma-activities.git"
11license="GPL-2.0-or-later AND LGPL-2.1-or-later AND (LGPL-2.1-only OR LGPL-3.0-only)"
12depends="qt6-qtbase-sqlite"
13depends_dev="
14 kconfig-dev
15 kcoreaddons-dev
16 kwindowsystem-dev
17 qt6-qtdeclarative-dev
18 "
19makedepends="$depends_dev
20 boost-dev
21 doxygen
22 extra-cmake-modules
23 kde-qdoc-common
24 qt6-qtdeclarative-private-dev
25 qt6-qttools-dev
26 samurai
27 "
28subpackages="
29 $pkgname-dev
30 $pkgname-libs
31 $pkgname-doc
32 "
33
34case "$pkgver" in
35 *.*.9*) _rel=unstable;;
36 *) _rel=stable;;
37esac
38
39_repo_url="https://invent.kde.org/plasma/plasma-activities.git"
40source="https://download.kde.org/$_rel/plasma/$pkgver/plasma-activities-$pkgver.tar.xz"
41options="!check" # No usable tests
42
43build() {
44 export KDE_DOCS=/usr/share/kde/documentation
45 cmake -B build -G Ninja \
46 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
47 -DCMAKE_INSTALL_PREFIX=/usr \
48 -DCMAKE_INSTALL_LIBDIR=lib
49 cmake --build build
50
51 cmake --build build --target prepare_docs
52 cmake --build build --target generate_docs
53 cmake --build build --target generate_qch
54}
55
56check() {
57 ctest --test-dir build
58}
59
60package() {
61 DESTDIR="$pkgdir" cmake --install build
62
63 DESTDIR="$pkgdir" cmake --build build --target install_html_docs
64 DESTDIR="$pkgdir" cmake --build build --target install_qch_docs
65}
66
67sha512sums="
68a6a94482332ab097d01f5319479bf07a0b0aaae692b565770abb21100b54719f0aaa9380a0a6d35f96fb44cfb3d4392041f96aa0022897484ee2eb888fcab269 plasma-activities-6.8.0.tar.xz
69"