mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 09:27:19 +02:00
56 lines
1.8 KiB
Text
56 lines
1.8 KiB
Text
maintainer="Donoban <donoban@riseup.net>"
|
|
pkgname=taskwarrior-tui
|
|
pkgdesc="A terminal user interface for taskwarrior"
|
|
pkgver=0.26.3
|
|
pkgrel=0
|
|
_data_commit=149099b69457404e20e73b428db00c7e88aca8d3
|
|
|
|
# s390x fails to build radix_trie v0.2.1
|
|
# loongarch63 fails to build regex-automata v0.3.7
|
|
arch="all !s390x !loongarch64"
|
|
url="https://kdheepak.com/taskwarrior-tui"
|
|
license="MIT"
|
|
makedepends="cargo cargo-auditable"
|
|
checkdepends="task3"
|
|
subpackages="
|
|
$pkgname-doc
|
|
$pkgname-bash-completion
|
|
$pkgname-fish-completion
|
|
"
|
|
source="
|
|
https://github.com/kdheepak/taskwarrior-tui/archive/v$pkgver/taskwarrior-tui-$pkgver.tar.gz
|
|
test-data-$_data_commit.tar.gz::https://github.com/kdheepak/taskwarrior-testdata/archive/$_data_commit.tar.gz
|
|
"
|
|
options="net"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --frozen --release
|
|
}
|
|
|
|
check() {
|
|
export TASKRC=../taskwarrior-testdata-$_data_commit/.taskrc
|
|
export TASKDATA=../taskwarrior-testdata-$_data_commit/.task
|
|
|
|
cargo test --frozen --all-features
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/"$pkgname" -t "$pkgdir"/usr/bin/
|
|
install -Dm 644 "docs/$pkgname.1" -t "$pkgdir/usr/share/man/man1"
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname
|
|
install -Dm644 "$builddir"/completions/taskwarrior-tui.fish \
|
|
-t "$pkgdir"/usr/share/fish/vendor_completions.d/
|
|
install -Dm644 "$builddir"/completions/taskwarrior-tui.bash \
|
|
-t "$pkgdir"/usr/share/bash-completion/completions/
|
|
}
|
|
|
|
sha512sums="
|
|
a7fd4d62dddaa46bae6e38452856394a17604f95bacb5284c5b4c01cd4486f40ba1017a0ee8b37d592eb48c816e4aa0854cd86e6064386c63c92915dd8b09730 taskwarrior-tui-0.26.3.tar.gz
|
|
c50907276a3230ddffe92b1cbce0be19e0b7c0a1c9d30039592034cfa27ceecf66181ff58be32165a4aec7114419b2c9b93da9116f08221a7d989cbbfcf6fccb test-data-149099b69457404e20e73b428db00c7e88aca8d3.tar.gz
|
|
"
|