pmaports/kde/trainer/APKBUILD
2020-06-23 17:45:16 +03: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" # armhf blocked by qt5-qtdeclarative
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"