pmaports/kde/kclock/APKBUILD
Oliver Smith cca64d3c29
kde/kclock: disable qmlplugindump for armv7 (MR 1554)
qmlplugindump is failing when it runs with qemu user mode emulation for
armv7 on builds.sr.ht. Disable it to unblock our binary repository.

The information retrieved by qmlplugindump is purely for packager
knowledge and does not affect the runtime of kclock.

Related: MR 9
Fixes: build.postmarketos.org#74
2020-09-07 16:28:53 +02:00

38 lines
1.4 KiB
Text

# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kclock
pkgver=0_git20200618
pkgrel=2
_commit="608247addaf4e6666c9985c82eb0b73aa6840310"
pkgdesc="Clock app for Plasma Mobile"
url="https://invent.kde.org/plasma-mobile/kclock"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
license="LicenseRef-KDE-Accepted-GPL"
depends="kirigami2 kirigami-addons"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtsvg-dev qt5-qtquickcontrols2-dev kconfig-dev kirigami2-dev ki18n-dev kcoreaddons-dev kconfig-dev knotifications-dev kdbusaddons-dev"
source="https://invent.kde.org/plasma-mobile/kclock/-/archive/$_commit/kclock-$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"
prepare() {
default_prepare
# qmlplugindump fails for armv7+qemu (bpo#74). 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
}
package() {
DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="a3b63cace341c6ece2cd79df47c86c741b113e0d556ff8b427314d7bea1043d7b310007808fa8c7e03bd82fd063953cc53835cc9ad6d4f6fbb0dec48f81fec61 kclock-608247addaf4e6666c9985c82eb0b73aa6840310.tar.gz"