Skip to content
/ aur Public

Commit f83f79b

Browse files
author
zhangjinqiang
committed
Compatible with go 1.16, thanks axolotl
revert commit: 675d1df import patch: jstemmer/gotags#46
1 parent 675d1df commit f83f79b

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

.SRCINFO

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
pkgbase = gotags
22
pkgdesc = ctags-compatible tag generator for Go
33
pkgver = 1.4.1
4-
pkgrel = 2
4+
pkgrel = 3
55
url = https://github.com/jstemmer/gotags
66
arch = any
77
license = MIT
88
makedepends = go-pie
99
source = https://github.com/jstemmer/gotags/archive/v1.4.1.tar.gz
10+
source = https://github.com/jstemmer/gotags/pull/46.patch
1011
sha256sums = 2df379527eaa7af568734bc4174febe7752eb5af1b6194da84cd098b7c873343
12+
sha256sums = 246f3e75f000eb09e40ed2d8893834cd7015029607f2ef44f1d7062c5b22ef31
1113

1214
pkgname = gotags
1315

PKGBUILD

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,25 @@
22

33
pkgname=gotags
44
pkgver=1.4.1
5-
pkgrel=2
5+
pkgrel=3
66
pkgdesc='ctags-compatible tag generator for Go'
77
arch=('any')
88
url='https://github.com/jstemmer/gotags'
99
license=('MIT')
1010
makedepends=('go-pie')
11-
source=("${url}/archive/v${pkgver}.tar.gz")
12-
sha256sums=('2df379527eaa7af568734bc4174febe7752eb5af1b6194da84cd098b7c873343')
11+
source=("${url}/archive/v${pkgver}.tar.gz"
12+
"https://github.com/jstemmer/gotags/pull/46.patch")
13+
sha256sums=('2df379527eaa7af568734bc4174febe7752eb5af1b6194da84cd098b7c873343'
14+
'246f3e75f000eb09e40ed2d8893834cd7015029607f2ef44f1d7062c5b22ef31')
15+
16+
prepare(){
17+
cd "${srcdir}/${pkgname}-${pkgver}"
18+
patch -p1 < "${srcdir}/46.patch"
19+
}
1320

1421
build() {
1522
cd "${srcdir}/${pkgname}-${pkgver}"
1623
export GOCACHE="${srcdir}/${pkgname}-${pkgver}/gocache"
17-
go mod init ${url##https://}
1824
go build -o "${pkgname}"
1925
}
2026

0 commit comments

Comments
 (0)