Date: Friday, August 13, 2021 @ 16:30:21
  Author: anatolik
Revision: 998190

archrelease: copy trunk to community-testing-x86_64

Added:
  revive/repos/community-testing-x86_64/
  revive/repos/community-testing-x86_64/PKGBUILD
    (from rev 998189, revive/trunk/PKGBUILD)

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

Copied: revive/repos/community-testing-x86_64/PKGBUILD (from rev 998189, 
revive/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-08-13 16:30:21 UTC (rev 998190)
@@ -0,0 +1,35 @@
+# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
+
+pkgname=revive
+pkgver=1.0.9
+pkgrel=1
+pkgdesc="faster, stricter, configurable, extensible, and beautiful drop-in 
replacement for golint"
+arch=('x86_64')
+url='https://revive.run'
+license=('MIT')
+depends=('glibc')
+makedepends=('go')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mgechev/revive/archive/v${pkgver}.tar.gz";)
+sha256sums=('5b80b65ca5a76b1d52e66eff5f2f217f11a3f7ec137deeb2314986b45dfcada9')
+
+build() {
+  cd revive-${pkgver}
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -modcacherw"
+  go build
+}
+
+check() {
+  cd revive-${pkgver}/test
+  go test || true
+}
+
+package() {
+  cd revive-${pkgver}
+  install -Dm755 revive "${pkgdir}/usr/bin/revive"
+  install -Dm644 defaults.toml "${pkgdir}/etc/revive/revive.toml"
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Reply via email to