mio 58955b985a community/ktechlab: run tests
Fix `No tests were found!!!` error causing build failure with abuild 3.14.0.

Ref: https://gitlab.alpinelinux.org/alpine/aports/-/issues/16519
2024-11-03 10:17:16 +00:00

58 lines
1.4 KiB
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-other
maintainer="team/kde <bribbers@disroot.org>"
pkgname=ktechlab
pkgver=0.51.0
pkgrel=1
pkgdesc="IDE for microcontrollers and electronics"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://apps.kde.org/ktechlab/"
license="GPL-2.0-only"
makedepends="
extra-cmake-modules
kcompletion5-dev
kconfig5-dev
kconfigwidgets5-dev
kcoreaddons5-dev
kdoctools5-dev
ki18n5-dev
kiconthemes5-dev
kio5-dev
kparts5-dev
ktexteditor5-dev
ktextwidgets5-dev
kwidgetsaddons5-dev
kwindowsystem5-dev
kxmlgui5-dev
qt5-qtbase-dev
qt5-qtserialport-dev
samurai
"
checkdepends="xvfb-run"
subpackages="$pkgname-doc $pkgname-lang"
_repo_url="https://invent.kde.org/sdk/ktechlab.git"
source="https://download.kde.org/unstable/ktechlab/ktechlab-$pkgver.tar.xz"
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_TESTING="$(want_check && echo ON || echo OFF)"
cmake --build build
}
check() {
xvfb-run -a "$builddir"/build/tests/tests_app/tests_app
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
65c71bafb4ea90dbe34860ebefa8c05b393953d690309d61a53fa9f012e14a2544c03c2aeac2c79e700d449ed84d7d691beafdf398348fe02ad1562b326c0c40 ktechlab-0.51.0.tar.xz
"