summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEgor Kovetskiy2020-07-13 17:57:36 +0300
committerEgor Kovetskiy2020-07-13 17:57:36 +0300
commit9dbdd15797de980b293d744cd15489b31046dfd6 (patch)
tree486504a8d6578c488f7e7dc8d176171cbc8a8437
parent5b8f76e41605cf3e468a7b1273e573a3f2a1e4db (diff)
downloadaur-9dbdd15797de980b293d744cd15489b31046dfd6.tar.gz
fix version
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD34
2 files changed, 18 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f7cdb8ec08a..fc0bb6a382b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = taskfile-git
pkgdesc = A task runner / simpler Make alternative written in Go
- pkgver = v2.8.1.r7.g7dcb3af
+ pkgver = 2.8.1.r7.g7dcb3af
pkgrel = 1
url = https://github.com/go-task/task
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 40007b566d4..95f39d2c9e5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Egor Kovetskiy <e.kovetskiy@gmail.com>
pkgname=taskfile-git
_pkgname=task
-pkgver=v2.8.1.r7.g7dcb3af
+pkgver=2.8.1.r7.g7dcb3af
pkgrel=1
pkgdesc="A task runner / simpler Make alternative written in Go"
arch=('any')
@@ -10,17 +10,17 @@ depends=(
)
url="https://github.com/go-task/task"
makedepends=(
- 'go'
- 'git'
+ 'go'
+ 'git'
)
_goname="github.com/go-task/task"
source=(
- "$_pkgname::git://github.com/go-task/task#branch=${BRANCH:-master}"
+ "$_pkgname::git://github.com/go-task/task#branch=${BRANCH:-master}"
)
md5sums=(
- 'SKIP'
+ 'SKIP'
)
backup=(
@@ -28,30 +28,30 @@ backup=(
pkgver() {
cd "$srcdir/$_pkgname"
- git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^r//'
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
build() {
- cd "$srcdir/$_pkgname"
+ cd "$srcdir/$_pkgname"
- rm -rf "$srcdir/go/src"
+ rm -rf "$srcdir/go/src"
mkdir -p "$srcdir/go/src/$(dirname $_goname)"
- export GOPATH="$srcdir/go"
+ export GOPATH="$srcdir/go"
- cp -r "$srcdir/$_pkgname" "$srcdir/go/src/$_goname"
- cd "$srcdir/go/src/$_goname/"
+ cp -r "$srcdir/$_pkgname" "$srcdir/go/src/$_goname"
+ cd "$srcdir/go/src/$_goname/"
- echo ":: Building binary"
- go get -v \
- -gcflags "-trimpath $GOPATH/src" ./cmd/...
+ echo ":: Building binary"
+ go get -v \
+ -gcflags "-trimpath $GOPATH/src" ./cmd/...
}
package() {
- find "$srcdir/go/bin/" -type f -executable | while read filename; do
- install -DT "$filename" "$pkgdir/usr/bin/$(basename $filename)"
- done
+ 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"