# Contributor: Michał Polański # Maintainer: Natanael Copa pkgname=task pkgver=2.6.2 pkgrel=2 pkgdesc="command-line to-do list manager" url="https://taskwarrior.org" arch="all" license="MIT" makedepends="cmake gnutls-dev util-linux-dev" subpackages="$pkgname-doc $pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion " source="https://github.com/GothenburgBitFactory/taskwarrior/releases/download/v$pkgver/task-$pkgver.tar.gz" build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build install -Dm644 scripts/bash/$pkgname.sh \ "$pkgdir"/usr/share/bash-completion/completions/$pkgname install -Dm644 scripts/fish/$pkgname.fish \ "$pkgdir"/usr/share/fish/vendor_completions.d/$pkgname.fish install -Dm644 scripts/zsh/_$pkgname \ "$pkgdir"/usr/share/zsh/site-functions/_$pkgname } sha512sums=" 3c592552c1baada09ef4e06cf2266c9897ffae42a75998b70767f2cfbabd2e1de7d1a900f16f3b8eb164ce19637dabd21e246f84732a20a646f39716895cdf98 task-2.6.2.tar.gz "