# Template file for 'taskwarrior-tui'
pkgname=taskwarrior-tui
version=0.24.2
revision=1
build_style=cargo
depends="task"
checkdepends="git task"
short_desc="Terminal user interface for taskwarrior"
maintainer="Eloi Torrents <eloitor@disroot.org>"
license="MIT"
homepage="https://kdheepak.com/taskwarrior-tui/"
distfiles="https://github.com/kdheepak/taskwarrior-tui/archive/refs/tags/v${version}.tar.gz"
checksum=6f567acd8f0ba6009f20d9ba60078e2b999fddb0fdbcffa75f088c62679b2dc3

post_install() {
	vlicense LICENSE
}

do_check() {
	git clone https://github.com/kdheepak/taskwarrior-testdata/
	export TASKRC=$(pwd)/taskwarrior-testdata/.taskrc
	export TASKDATA=$(pwd)/taskwarrior-testdata/.task
	task import $(pwd)/taskwarrior-testdata/export.json
}
