projects/aports·blob master · refs

52 lines · 1.4 KiB

1# The group tag is just to easily find this APKBUILD by some scripts for automation
2# group=kde-other
3maintainer="team/kde <[email protected]>"
4pkgname=kirigami-app-components
5pkgver=1.0.0
6pkgrel=0
7pkgdesc="Kirigami addons and modules necessary to do a full featured KDE application"
8url="https://invent.kde.org/libraries/kirigami-app-components"
9# armhf blocked by qt6-qtdeclarative
10arch="all !armhf"
11license="LGPL-2.0-or-later AND GPL-2.0-or-later"
12depends="
13 kirigami
14 ki18n
15 "
16depends_dev="
17 kconfig-dev
18 kguiaddons-dev
19 ki18n-dev
20 kirigami-dev
21 qt6-qtdeclarative-dev
22 "
23makedepends="$depends_dev
24 extra-cmake-modules
25 samurai
26 "
27checkdepends="xwayland-run"
28subpackages="$pkgname-dev"
29_repo_url="https://invent.kde.org/libraries/kirigami-app-components.git"
30source="https://download.kde.org/stable/kirigami-app-components/kirigami-app-components-$pkgver.tar.xz"
31options="!check" # Too flaky to rely on currently
32
33build() {
34 cmake -B build -G Ninja \
35 -DCMAKE_BUILD_TYPE=MinSizeRel \
36 -DCMAKE_INSTALL_PREFIX=/usr \
37 -DCMAKE_INSTALL_LIBDIR=lib \
38 -DBUILD_TESTING="$(want_check && echo ON || echo OFF)"
39 cmake --build build
40}
41
42check() {
43 wlheadless-run -- ctest --test-dir build
44}
45
46package() {
47 DESTDIR="$pkgdir" cmake --install build
48}
49
50sha512sums="
51e40cbe928b20a40b89ebbdd17c26cf04cdb2610a8dd6a0cf2dded4b47b43a55ff391cb89edefb99a55f7b536620e3c874d51fd42e434137ebddaad6a4b2fe406 kirigami-app-components-1.0.0.tar.xz
52"