[arch-commits] Commit in golang-github-vividcortex-gohistogram/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Sep 1 08:27:32 UTC 2022
Date: Thursday, September 1, 2022 @ 08:27:32
Author: felixonmars
Revision: 1289829
archrelease: copy trunk to community-any
Added:
golang-github-vividcortex-gohistogram/repos/community-any/
golang-github-vividcortex-gohistogram/repos/community-any/PKGBUILD
(from rev 1289828, golang-github-vividcortex-gohistogram/trunk/PKGBUILD)
----------+
PKGBUILD | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
Copied: golang-github-vividcortex-gohistogram/repos/community-any/PKGBUILD (from rev 1289828, golang-github-vividcortex-gohistogram/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-09-01 08:27:32 UTC (rev 1289829)
@@ -0,0 +1,28 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-github-vividcortex-gohistogram
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Streaming approximate histograms in Go"
+arch=('any')
+url="https://github.com/VividCortex/gohistogram"
+license=('MIT')
+depends=('go')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/VividCortex/gohistogram/archive/v$pkgver.tar.gz")
+sha512sums=('0fb57644521135823169e9a945a7dae3702e44310f756a8e5342ef74eeb35615426d8958fff2b76c499ae6c0b1e1992034bdb67a8321b09969f88f1bb7325e6c')
+
+check() {
+ export GO111MODULE=off
+ export GOPATH="$srcdir/build:/usr/share/gocode"
+ mkdir -p "$srcdir"/build/src/github.com/VividCortex
+ cp -a "$srcdir"/gohistogram-$pkgver "$srcdir"/build/src/github.com/VividCortex/gohistogram
+ cd "$srcdir"/build/src/github.com/VividCortex/gohistogram
+ go test -v $(go list ./...)
+}
+
+package() {
+ mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/VividCortex
+ cp -a "$srcdir"/gohistogram-$pkgver "$pkgdir"/usr/share/gocode/src/github.com/VividCortex/gohistogram
+
+ install -Dm644 gohistogram-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list