[arch-commits] Commit in revive/repos (2 files)

Anatol Pomozov anatolik at archlinux.org
Mon Jan 25 01:51:04 UTC 2021


    Date: Monday, January 25, 2021 @ 01:51:04
  Author: anatolik
Revision: 829404

archrelease: copy trunk to community-testing-x86_64

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

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

Copied: revive/repos/community-testing-x86_64/PKGBUILD (from rev 829403, revive/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-01-25 01:51:04 UTC (rev 829404)
@@ -0,0 +1,35 @@
+# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
+
+pkgname=revive
+pkgver=1.0.3
+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=('3f829c35dcc8b94bb78c706c2a35bb1f5c77e83128614aa3867fe2952d0ce936')
+
+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"
+}



More information about the arch-commits mailing list