Package Details: timetrace 0.14.3-1

Git Clone URL: https://aur.archlinux.org/timetrace.git (read-only, click to copy)
Package Base: timetrace
Description: Simple time-tracking CLI tool
Upstream URL: https://github.com/dominikbraun/timetrace
Keywords: clock go golang time tracking work-clock
Licenses: Apache
Submitter: lmartinez-mirror
Maintainer: tee
Last Packager: lmartinez-mirror
Votes: 1
Popularity: 0.000212
First Submitted: 2021-05-20 04:39 (UTC)
Last Updated: 2022-03-06 18:21 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

lmartinez-mirror commented on 2021-08-31 23:14 (UTC)

Patch couldn't apply for some reason, but thanks for your contribution!

SZanko commented on 2021-08-29 13:35 (UTC)

Add support zsh+fish completions

diff --git a/PKGBUILD b/PKGBUILD
index 8379027..1c71546 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,15 +1,20 @@
 # Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
+# Contributer: SZanko <szanko at protonmail dot com>

 pkgname=timetrace
 pkgver=0.13.0
-pkgrel=2
+pkgrel=3
 pkgdesc="A simple time-tracking CLI tool"
 arch=('x86_64')
 url="https://github.com/dominikbraun/timetrace"
 license=('Apache')
 depends=('glibc')
 makedepends=('go')
-optdepends=('bash-completion: built-in completions')
+optdepends=(
+       'bash-completion: built-in completions'
+       'zsh-completions: generated zsh completions'
+       'fish: generated fish completions'
+)
 install="$pkgname.install"
 changelog=CHANGELOG.md
 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
@@ -24,6 +29,8 @@ build() {

        cd "$pkgname-$pkgver"
        go build -o "$pkgname"
+       "./$pkgname" completion zsh > zsh-completion
+       "./$pkgname" completion fish > fish-completion
 }

 check() {
@@ -41,6 +48,8 @@ package() {
        cd "$pkgname-$pkgver"
        install -Dm 755 "$pkgname" -t "$pkgdir/usr/bin/"
        install -Dm 644 completion/bash/timetrace.sh "$pkgdir/usr/share/bash-completion/completions/$pkgname"
+       install -Dm 644 zsh-completion "$pkgdir/usr/share/zsh/site-functions/_$pkgname"
+       install -Dm 644 fish-completion "$pkgdir/usr/share/fish/completions/$pkgname.fish"
        install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
        install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
 }