[arch-commits] Commit in gopls/trunk (PKGBUILD)

Morten Linderud foxboron at archlinux.org
Thu Sep 17 21:47:26 UTC 2020


    Date: Thursday, September 17, 2020 @ 21:47:26
  Author: foxboron
Revision: 709453

upgpkg: gopls 0.5.0-1

Added:
  gopls/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-09-17 21:47:26 UTC (rev 709453)
@@ -0,0 +1,33 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Chad Kunde <Kunde21 at gmail.com>
+
+pkgname=gopls
+pkgver=0.5.0
+pkgrel=1
+pkgdesc='Language server for Go programming language'
+arch=(x86_64 aarch64 armv7h armv7l)
+url='https://github.com/golang/tools/tree/master/gopls'
+license=(BSD)
+depends=(glibc)
+makedepends=('git' 'go')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/golang/tools/archive/gopls/v${pkgver}.tar.gz")
+sha256sums=('1b5f80eb6da71afba18c7d4327d4913cfb9b6a0840ebb33006e3b9eccec12412')
+
+build() {
+  cd "tools-${pkgname}-v${pkgver}/${pkgname}"
+
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
+  go build -o "${pkgname}"
+}
+
+package() {
+  cd "tools-${pkgname}-v${pkgver}"
+  install -Dm755 "${pkgname}/${pkgname}" -t "${pkgdir}"/usr/bin/
+  install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list