# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=tasksh
pkgver=1.2.0
pkgrel=1
pkgdesc="A shell command that wraps Taskwarrior commands"
url="https://taskwarrior.org/docs/review.html"
arch="all"
license="MIT"
depends="task"
makedepends="cmake samurai"
subpackages="$pkgname-doc"
source="https://github.com/GothenburgBitFactory/taskshell/releases/download/v$pkgver/tasksh-$pkgver.tar.gz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

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

sha512sums="
0c0a678a1cf48d1b7fcc123da5152d74bbb4334520252788ad38e3cb9bd2a5189902c066d7dbc848a23f6c7c25e53a8e1dc240dd6e57dbbdc993079a3e9fc417  tasksh-1.2.0.tar.gz
"
