Date: Wednesday, January 18, 2023 @ 14:24:38
Author: kpcyrd
Revision: 1386879
archrelease: copy trunk to community-x86_64
Added:
go-licenses/repos/community-x86_64/PKGBUILD
(from rev 1386878, go-licenses/trunk/PKGBUILD)
Deleted:
go-licenses/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 57 ++++++++++++++++++++++++++++++++-------------------------
1 file changed, 32 insertions(+), 25 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-18 14:24:16 UTC (rev 1386878)
+++ PKGBUILD 2023-01-18 14:24:38 UTC (rev 1386879)
@@ -1,25 +0,0 @@
-# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
-
-pkgname=go-licenses
-pkgver=1.5.0
-pkgrel=1
-pkgdesc="Reports on the licenses used by a Go package and its dependencies"
-url="https://github.com/google/go-licenses"
-arch=('x86_64')
-license=('Apache')
-makedepends=('go')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/google/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz)
-b2sums=('abc0520c16386c7afa3f63b649ee247dfd6c47f1fda91a9b885ef2a35ddd01eb9405aeee844823edf7c260fb6009abdca141c16f6561a27ab5a50ad4ab5db929')
-
-build() {
- cd ${pkgname}-${pkgver}
- go build .
-}
-
-package() {
- cd ${pkgname}-${pkgver}
- install -Dm755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}"
- install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-# vim: ts=2 sw=2 et:
Copied: go-licenses/repos/community-x86_64/PKGBUILD (from rev 1386878,
go-licenses/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-01-18 14:24:38 UTC (rev 1386879)
@@ -0,0 +1,32 @@
+# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
+
+pkgname=go-licenses
+pkgver=1.6.0
+pkgrel=1
+pkgdesc="Reports on the licenses used by a Go package and its dependencies"
+url="https://github.com/google/go-licenses"
+arch=('x86_64')
+license=('Apache')
+makedepends=('go')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/google/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz)
+sha256sums=('70c1ceb7c342ceb79b63a76caafb13ea3796a51715c742a482eb9d85277311e7')
+b2sums=('a37d2e12d0400c18d74ff05d9dfef3354774b374045274457d1be7aff53901f1524fcce973eba53e3be827d868addd54411fcefb32fa14d30daa9d6f7a833036')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ go build \
+ -trimpath \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
+ .
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ install -Dm755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim: ts=2 sw=2 et: