pmaports/kde/trainer/APKBUILD
Oliver Smith 35015139f3
*/*: disable armv7 for plasma programs
"plasma" and some related packages are currently missing in Alpine edge
armv7 due to a cyclic dependency. Let's disable all packages depending
on plasma for armv7 temporarily, to get the pmOS edge armv7 repo up
again.
[ci:skip-build], [ci:skip-vercheck]: only arch line changed

Related: build.postmarketos.org#72
2020-07-29 12:19:04 +02:00

34 lines
1.3 KiB
Text

# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=trainer
pkgver=0_git20200623
pkgrel=0
_commit="ec505f334188a2d1e2be492c1fad86735f03d96b"
pkgdesc="Application to help you practice sport exercises with a description and duration"
url="https://invent.kde.org/plasma-mobile/trainer"
arch="all !armhf !armv7" # armhf: pmaports#75, armv7: build.postmarketos.org#72
license="GPL-3.0-or-later AND CC0-1.0"
depends="kirigami2"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtmultimedia-dev qt5-qtquickcontrols2-dev qt5-qtspeech-dev kirigami2-dev ki18n-dev kdeclarative-dev kconfig-dev kcrash-dev"
checkdepends="xvfb-run"
source="https://invent.kde.org/plasma-mobile/trainer/-/archive/$_commit/trainer-$_commit.tar.gz"
options="!check" # Broken tests https://invent.kde.org/plasma-mobile/trainer/-/issues/1
builddir="$srcdir/$pkgname-$_commit"
build() {
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
}
check() {
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}
package() {
DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="1a35b776d4f6ef2e92ccdc46e943e6ad6198932ca92f64e4c2d06c0e611b792bd24698b899271bf667a53b66e4429857d39e87006090a088067ded9cbd6402ee trainer-ec505f334188a2d1e2be492c1fad86735f03d96b.tar.gz"