diff options
author | Bart Ribbers <bribbers@disroot.org> | 2020-01-10 16:06:37 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-01-10 17:35:36 +0100 |
commit | 3ee5e8f79c37d296574caa1057d701abcb161fe1 (patch) | |
tree | 0c4145f3ac6fc388c513e6496e4dcb0c7d1c176d | |
parent | a7c04540b8808bbe5fa031cddc621458e8ea38cd (diff) | |
download | aports-3ee5e8f79c37d296574caa1057d701abcb161fe1.tar.bz2 aports-3ee5e8f79c37d296574caa1057d701abcb161fe1.tar.xz |
testing/ktimetracker: new aport
-rw-r--r-- | testing/ktimetracker/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/ktimetracker/APKBUILD b/testing/ktimetracker/APKBUILD new file mode 100644 index 0000000000..adf8b9db20 --- /dev/null +++ b/testing/ktimetracker/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Bart Ribbers <bribbers@disroot.org> +# Maintainer: Bart Ribbers <bribbers@disroot.org> +pkgname=ktimetracker +pkgver=5.0.1 +pkgrel=0 +arch="all !armhf" #qtdeclarative +url="https://kde.org/applications/office/org.kde.ktimetracker" +pkgdesc="Todo management and time tracker" +license="GPL-2.0-or-later AND GFDL-1.2-only" +makedepends="extra-cmake-modules qt5-qtbase-dev kconfig-dev kconfigwidgets-dev kdbusaddons-dev kdoctools-dev ki18n-dev kidletime-dev kjobwidgets-dev kio-dev knotifications-dev kwindowsystem-dev kxmlgui-dev ktextwidgets kcalendarcore-dev" +checkdepends="xvfb-run" +source="https://download.kde.org/stable/ktimetracker/$pkgver/src/ktimetracker-$pkgver.tar.xz" +subpackages="$pkgname-doc $pkgname-lang" + +prepare() { + default_prepare + + mkdir "$builddir"/build +} + +build() { + cd "$builddir"/build + cmake "$builddir" \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + make +} + +check() { + case "$CARCH" in + armv7|x86) excluded_tests="(formattime|exportcsv)test" ;; + *) excluded_tests="" ;; + esac + + cd "$builddir"/build + CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "($excluded_tests)" +} + +package() { + cd "$builddir"/build + DESTDIR="$pkgdir" make install +} + +sha512sums="78de8651efd72fa9fd5c7f06992ab8970e1d763c6f30f5eba52ec93bb6a2bb19ae777bc90809ef5198bc3b6a5f9f5ee78e240eadcacd8ce8489bdb28cd62431e ktimetracker-5.0.1.tar.xz" |