summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorEgor Kovetskiy2019-12-28 13:35:49 +0300
committerEgor Kovetskiy2019-12-28 13:35:49 +0300
commit4bab93adea7d0bd599a13787466eca98ea95b052 (patch)
treeec805899e383f591547f09c923416c2b7334f5bd /PKGBUILD
parentba37d43c1b44414864b3d747058fb7f9288a945b (diff)
downloadaur-4bab93adea7d0bd599a13787466eca98ea95b052.tar.gz
taskfile-git: add zsh completion
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD10
1 files changed, 4 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0804a2cae8b..d1ed893f4e1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -41,18 +41,13 @@ pkgver() {
build() {
cd "$srcdir/$_pkgname"
- if [ -L "$srcdir/$_pkgname" ]; then
- rm "$srcdir/$_pkgname" -rf
- mv "$srcdir/go/src/$_pkgname/" "$srcdir/$_pkgname"
- fi
-
rm -rf "$srcdir/go/src"
mkdir -p "$srcdir/go/src/$(dirname $_goname)"
export GOPATH="$srcdir/go"
- mv "$srcdir/$_pkgname" "$srcdir/go/src/$_goname"
+ cp -r "$srcdir/$_pkgname" "$srcdir/go/src/$_goname"
cd "$srcdir/go/src/$_goname/"
echo ":: Building binary"
@@ -64,4 +59,7 @@ package() {
find "$srcdir/go/bin/" -type f -executable | while read filename; do
install -DT "$filename" "$pkgdir/usr/bin/$(basename $filename)"
done
+
+ install -DT "$srcdir/$_pkgname/completion/zsh/_task" \
+ "$pkgdir/usr/share/zsh/site-functions/_task"
}