aboutsummaryrefslogtreecommitdiffstats
path: root/community/ktimer/APKBUILD
blob: 3819c4b220b845508a11e0e540ec60322deb4cdf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=ktimer
pkgver=20.12.2
pkgrel=0
arch="all !armhf !s390x !mips64"
url="https://kde.org/applications/utilities/org.kde.ktimer"
pkgdesc="A little tool to execute programs after some time"
license="GPL-2.0-or-later"
makedepends="extra-cmake-modules qt5-qtbase-dev kdoctools-dev ki18n-dev kwidgetsaddons-dev kio-dev kdbusaddons-dev knotifications-dev kconfig-dev"
source="https://download.kde.org/stable/release-service/$pkgver/src/ktimer-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"
options="!check" # No tests

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 ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="2ce5a02c6c0a0a711311d6960193b65f09e8b12f89ffa4e9739ff69a6e9cca04e44f7461f855e8fbfbef2dc382a76ddae05958e2cadc84dca9ea24f694ce9855  ktimer-20.12.2.tar.xz"