pmaports/kde/kairo/APKBUILD
2021-04-03 10:37:31 -07:00

54 lines
1.5 KiB
Text

# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kairo
pkgver=0_git20210330
pkgrel=0
_commit="7495c6cf84284889c5382b14f7f004306b9f9d2b"
pkgdesc="Application to help you practice sport exercises with a description and duration"
url="https://invent.kde.org/utilities/kairo"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
license="GPL-3.0-or-later AND CC0-1.0"
depends="kirigami2"
makedepends="
extra-cmake-modules
kirigami2-dev
qt5-qtbase-dev
qt5-qtdeclarative-dev
qt5-qtmultimedia-dev
"
checkdepends="xvfb-run"
source="https://invent.kde.org/utilities/kairo/-/archive/$_commit/kairo-$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"
prepare() {
default_prepare
# qmlplugindump fails for armv7+qemu (pmb#1970). This is purely for
# packager knowledge and doesn't affect runtime, so we can disable it.
if [ "$CARCH" = "armv7" ]; then
sed -i "s/ecm_find_qmlmodule/# ecm_find_qmlmodule/g" CMakeLists.txt
fi
}
build() {
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
}
check() {
cd build
# circuitreadertest is broken
# timercontroltest fails on armv7/aarch64 in qemu
CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest \
-E "circuitreadertest|timercontroltest"
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="73c1fad27a5bd5aed23259e80e189937255a0b2dc366a951aca74834e0c5a97cdddd3d424f814f5733de3a5ef0cfe4ad61e1de31cccd2343df1042c1a811c48f kairo-7495c6cf84284889c5382b14f7f004306b9f9d2b.tar.gz"