# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=coretime
pkgver=4.5.0
pkgrel=0
pkgdesc="Time related task manager from C-Suite"
arch="all !armhf"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="qt5-qtbase-dev libcprime-dev qt5-qtmultimedia-dev cmake ninja"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/cubocore/coretime/-/archive/v$pkgver/coretime-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # No test suite

build() {
	cmake -B build \
		-GNinja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

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

sha512sums="
e44617043301f8a0d156d4fcdb109295a584ed9e3cc32fd20900e4a40a987ccf9b18b7290bcc49cc89eb0baf3cef5c6911e4d80b10c957a61fe850e40420122b  coretime-4.5.0.tar.gz
"
