Date: Tuesday, September 27, 2022 @ 19:15:21
  Author: kpcyrd
Revision: 1312809

archrelease: copy trunk to community-x86_64

Added:
  go-licenses/repos/community-x86_64/
  go-licenses/repos/community-x86_64/PKGBUILD
    (from rev 1312808, go-licenses/trunk/PKGBUILD)

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

Copied: go-licenses/repos/community-x86_64/PKGBUILD (from rev 1312808, 
go-licenses/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2022-09-27 19:15:21 UTC (rev 1312809)
@@ -0,0 +1,25 @@
+# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
+
+pkgname=go-licenses
+pkgver=1.3.1
+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=('c10672e7e2c5273f94282ece50d437bff0df7543046dae4c00a9a490cb072c6fd36bac642ba6d56884fb16d8c5d8d539f38950c36d55ead9cc2a03eac78ce715')
+
+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:

Reply via email to