[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Sep 1 10:20:07 UTC 2022
Date: Thursday, September 1, 2022 @ 10:20:07
Author: felixonmars
Revision: 1290086
addpkg: golang-gopkg-pipe.v2 0.0.20140414-1
Added:
golang-gopkg-pipe.v2/
golang-gopkg-pipe.v2/repos/
golang-gopkg-pipe.v2/trunk/
golang-gopkg-pipe.v2/trunk/PKGBUILD
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Added: golang-gopkg-pipe.v2/trunk/PKGBUILD
===================================================================
--- golang-gopkg-pipe.v2/trunk/PKGBUILD (rev 0)
+++ golang-gopkg-pipe.v2/trunk/PKGBUILD 2022-09-01 10:20:07 UTC (rev 1290086)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-gopkg-pipe.v2
+pkgver=0.0.20140414
+_commit=3c2ca4d525447ec8b2f606a6974f9c9f40831f26
+pkgrel=1
+pkgdesc='Package pipe implements unix-like pipelines for Go'
+arch=('any')
+url="https://github.com/go-pipe/pipe/tree/v2"
+license=('BSD')
+depends=('go')
+checkdepends=('golang-gopkg-check.v1')
+source=("$pkgname-$_commit.tar.gz::https://github.com/go-pipe/pipe/archive/$_commit.tar.gz")
+sha512sums=('35737617793948f683b60f5297c4df73002be1812fc25ddba7180d5045e954906e60053bb610b4985a4d857acaa2658c587954f148dba6fad766990512d46306')
+
+check() {
+ export GO111MODULE=off
+ export GOPATH="$srcdir/build:/usr/share/gocode"
+ mkdir -p "$srcdir"/build/src/gopkg.in
+ cp -a "$srcdir"/pipe-$_commit "$srcdir"/build/src/gopkg.in/pipe.v2
+ cd "$srcdir"/build/src/gopkg.in/pipe.v2
+ # https://github.com/go-pipe/pipe/issues/6
+ go test -v $(go list ./...) || echo "Tests failed"
+}
+
+package() {
+ mkdir -p "$pkgdir"/usr/share/gocode/src/gopkg.in
+ cp -a "$srcdir"/pipe-$_commit "$pkgdir"/usr/share/gocode/src/gopkg.in/pipe.v2
+
+ install -Dm644 pipe-$_commit/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list