summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLorenzo Fontana2018-08-07 16:45:07 +0200
committerLorenzo Fontana2018-08-07 16:45:07 +0200
commit5bbfc931d0ddda534322f93a9bfe73e94b4c90f0 (patch)
treef53970694d0c2d85244a9061bc8c8bb06ad8009e /PKGBUILD
parentd37a49d007db3042ed3fcc9046332d40de8a3fc1 (diff)
downloadaur-5bbfc931d0ddda534322f93a9bfe73e94b4c90f0.tar.gz
Remove v in version number
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f3650faedad..2b34ed1ccc5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Lorenzo Fontana <lo@linux.com>
pkgname=coredns
gopkgname='github.com/coredns/coredns'
-pkgver=v1.2.0
+pkgver=1.2.0
pkgrel=1
pkgdesc="CoreDNS is a DNS server that chains plugins"
makedepends=('go' 'make')
@@ -10,7 +10,7 @@ arch=('i686' 'x86_64')
url="https://github.com/coredns/coredns"
license=('Apache')
provides=('coredns')
-source=(coredns-${pkgver}.tar.gz::https://github.com/coredns/${pkgname}/archive/${pkgver}.tar.gz
+source=(coredns-${pkgver}.tar.gz::https://github.com/coredns/${pkgname}/archive/v${pkgver}.tar.gz
https://raw.githubusercontent.com/coredns/deployment/39c9f7ed7640f86fa0fb6ba06a88e9afa830b306/systemd/coredns.service
https://raw.githubusercontent.com/coredns/deployment/39c9f7ed7640f86fa0fb6ba06a88e9afa830b306/systemd/coredns-sysusers.conf)
@@ -23,7 +23,7 @@ prepare() {
export GOPATH="$srcdir/build"
rm -rf "$GOPATH/src/$gopkgname"
mkdir --parents `dirname "$GOPATH/src/$gopkgname"`
- mv -Tv "$srcdir/$pkgname-${pkgver//v/}" "$GOPATH/src/$gopkgname"
+ mv -Tv "$srcdir/$pkgname-${pkgver}" "$GOPATH/src/$gopkgname"
}
build() {