[arch-commits] Commit in go-ipfs/repos/community-x86_64 (8 files)

Kpcyrd kpcyrd at gemini.archlinux.org
Thu Jul 7 20:26:55 UTC 2022


    Date: Thursday, July 7, 2022 @ 20:26:54
  Author: kpcyrd
Revision: 1248267

archrelease: copy trunk to community-x86_64

Added:
  go-ipfs/repos/community-x86_64/PKGBUILD
    (from rev 1248266, go-ipfs/trunk/PKGBUILD)
  go-ipfs/repos/community-x86_64/ipfs.service
    (from rev 1248266, go-ipfs/trunk/ipfs.service)
  go-ipfs/repos/community-x86_64/ipfs at .service
    (from rev 1248266, go-ipfs/trunk/ipfs at .service)
  go-ipfs/repos/community-x86_64/rb.patch
    (from rev 1248266, go-ipfs/trunk/rb.patch)
Deleted:
  go-ipfs/repos/community-x86_64/PKGBUILD
  go-ipfs/repos/community-x86_64/ipfs.service
  go-ipfs/repos/community-x86_64/ipfs at .service
  go-ipfs/repos/community-x86_64/rb.patch

---------------+
 PKGBUILD      |  125 ++++++++++++++++++++++++++------------------------------
 ipfs.service  |   18 ++++----
 ipfs at .service |   20 ++++----
 rb.patch      |   26 +++++------
 4 files changed, 92 insertions(+), 97 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-07 20:26:31 UTC (rev 1248266)
+++ PKGBUILD	2022-07-07 20:26:54 UTC (rev 1248267)
@@ -1,65 +0,0 @@
-# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
-# Contributor: Anatol Pomozov
-# Contributor: kpcyrd <git at rxv.cc>
-# Contributor: Frederik “Freso” S. Olesen <freso.dk at gmail.com>
-# Contributor: Ian Naval <ianonavy at gmail.com>
-
-pkgname=go-ipfs
-pkgver=0.12.2
-pkgrel=1
-
-pkgdesc='A peer-to-peer hypermedia distribution protocol'
-url='https://ipfs.io/'
-arch=(x86_64)
-license=(MIT)
-
-depends=(glibc)
-optdepends=('fuse2: for mounting/advanced use')
-makedepends=(go git)
-
-source=(go-ipfs-$pkgver.tar.gz::https://github.com/ipfs/go-ipfs/releases/download/v$pkgver/go-ipfs-source.tar.gz
-        # https://github.com/ipfs/go-ipfs/pull/8213#issuecomment-881866789
-        rb.patch
-        ipfs.service
-        ipfs at .service)
-noextract=(go-ipfs-$pkgver.tar.gz)
-
-sha512sums=('8164d175a59eb0b6ccac5e99eb5f0d135e5aa4782b6007e9eed0adc65b46b526dc7fa7e38d26fb5fb89d48a40567aa851c434a5af20888e31f8d419e3955d375'
-            '5591bb5b309ccf6464723650831e7ed1bf6ffc7e18645c3563452df965091b94d265b079db92ae0b359aa964540b2ee1c1b60b3000102168bfd32730b640f12c'
-            '1a6bc7fffc3c3640cda3f33c107424edd698c62bd8509731856b8827ea18be1a1845ef0d5ca15325d48d7d871a78daacc011ff9eacea926bc35899850990c1c6'
-            'aed168a35228c4f873e0040d1412f3568bfe1ad1e94ffb8b1a2507058daaf75d7346381d299cf9f0b91951b21553170249ff5f45d5fc060e711cf628ab5e5aad')
-
-prepare() {
-  mkdir -p go-ipfs
-  tar -C go-ipfs -xf go-ipfs-$pkgver.tar.gz
-  cd go-ipfs
-  patch -Np1 -i ../rb.patch
-}
-
-build() {
-  cd go-ipfs
-
-  export CGO_LDFLAGS="$LDFLAGS"
-  export CGO_CFLAGS="$CFLAGS"
-  export CGO_CPPFLAGS="$CPPFLAGS"
-  export CGO_CXXFLAGS="$CXXFLAGS"
-  export GOFLAGS="-buildmode=pie -trimpath -modcacherw"
-  # dirty fix go1.18
-  sed -i -r 's,^go 1\.[0-9]+,go 1.18,' go.mod
-  go mod tidy
-  go get github.com/lucas-clemente/quic-go at v0.26.0
-  go mod vendor
-  make build
-  cmd/ipfs/ipfs commands completion bash >"$srcdir"/ipfs-completion.bash
-}
-
-package() {
-  cd go-ipfs
-  install -Dm 755 cmd/ipfs/ipfs "$pkgdir/usr/bin/ipfs"
-  install -Dm 644 "$srcdir"/ipfs.service "$pkgdir/usr/lib/systemd/user/ipfs.service"
-  install -Dm 644 "$srcdir"/ipfs at .service "$pkgdir/usr/lib/systemd/system/ipfs at .service"
-  install -Dm 644 "$srcdir"/ipfs-completion.bash "$pkgdir/usr/share/bash-completion/completions/ipfs"
-  install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/MIT" LICENSE-MIT
-  install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/APACHE" LICENSE-APACHE
-  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
-}

Copied: go-ipfs/repos/community-x86_64/PKGBUILD (from rev 1248266, go-ipfs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-07-07 20:26:54 UTC (rev 1248267)
@@ -0,0 +1,60 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Contributor: Anatol Pomozov
+# Contributor: kpcyrd <git at rxv.cc>
+# Contributor: Frederik “Freso” S. Olesen <freso.dk at gmail.com>
+# Contributor: Ian Naval <ianonavy at gmail.com>
+
+pkgname=go-ipfs
+pkgver=0.13.1
+pkgrel=1
+
+pkgdesc='A peer-to-peer hypermedia distribution protocol'
+url='https://ipfs.io/'
+arch=(x86_64)
+license=(MIT)
+
+depends=(glibc)
+optdepends=('fuse2: for mounting/advanced use')
+makedepends=(go git)
+
+source=(go-ipfs-$pkgver.tar.gz::https://github.com/ipfs/go-ipfs/releases/download/v$pkgver/go-ipfs-source.tar.gz
+        # https://github.com/ipfs/go-ipfs/pull/8213#issuecomment-881866789
+        rb.patch
+        ipfs.service
+        ipfs at .service)
+noextract=(go-ipfs-$pkgver.tar.gz)
+
+sha512sums=('3257d49df61bb31d4054934506ea543df2d9ed1f57b9b6aeef001bb77fe9fdce646fec96ded72b7f9f99e3bc687da77997b1295ebb5a40e20e4df0413e15bfd7'
+            '5591bb5b309ccf6464723650831e7ed1bf6ffc7e18645c3563452df965091b94d265b079db92ae0b359aa964540b2ee1c1b60b3000102168bfd32730b640f12c'
+            '1a6bc7fffc3c3640cda3f33c107424edd698c62bd8509731856b8827ea18be1a1845ef0d5ca15325d48d7d871a78daacc011ff9eacea926bc35899850990c1c6'
+            'aed168a35228c4f873e0040d1412f3568bfe1ad1e94ffb8b1a2507058daaf75d7346381d299cf9f0b91951b21553170249ff5f45d5fc060e711cf628ab5e5aad')
+
+prepare() {
+  mkdir -p go-ipfs
+  tar -C go-ipfs -xf go-ipfs-$pkgver.tar.gz
+  cd go-ipfs
+  patch -Np1 -i ../rb.patch
+}
+
+build() {
+  cd go-ipfs
+
+  export CGO_LDFLAGS="$LDFLAGS"
+  export CGO_CFLAGS="$CFLAGS"
+  export CGO_CPPFLAGS="$CPPFLAGS"
+  export CGO_CXXFLAGS="$CXXFLAGS"
+  export GOFLAGS="-buildmode=pie -trimpath -modcacherw"
+  make build
+  cmd/ipfs/ipfs commands completion bash >"$srcdir"/ipfs-completion.bash
+}
+
+package() {
+  cd go-ipfs
+  install -Dm 755 cmd/ipfs/ipfs "$pkgdir/usr/bin/ipfs"
+  install -Dm 644 "$srcdir"/ipfs.service "$pkgdir/usr/lib/systemd/user/ipfs.service"
+  install -Dm 644 "$srcdir"/ipfs at .service "$pkgdir/usr/lib/systemd/system/ipfs at .service"
+  install -Dm 644 "$srcdir"/ipfs-completion.bash "$pkgdir/usr/share/bash-completion/completions/ipfs"
+  install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/MIT" LICENSE-MIT
+  install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/APACHE" LICENSE-APACHE
+  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+}

Deleted: ipfs.service
===================================================================
--- ipfs.service	2022-07-07 20:26:31 UTC (rev 1248266)
+++ ipfs.service	2022-07-07 20:26:54 UTC (rev 1248267)
@@ -1,9 +0,0 @@
-[Unit]
-Description=InterPlanetary File System (IPFS) daemon
-
-[Service]
-ExecStart=/usr/bin/ipfs daemon
-Restart=on-failure
-
-[Install]
-WantedBy=default.target

Copied: go-ipfs/repos/community-x86_64/ipfs.service (from rev 1248266, go-ipfs/trunk/ipfs.service)
===================================================================
--- ipfs.service	                        (rev 0)
+++ ipfs.service	2022-07-07 20:26:54 UTC (rev 1248267)
@@ -0,0 +1,9 @@
+[Unit]
+Description=InterPlanetary File System (IPFS) daemon
+
+[Service]
+ExecStart=/usr/bin/ipfs daemon
+Restart=on-failure
+
+[Install]
+WantedBy=default.target

Deleted: ipfs at .service
===================================================================
--- ipfs at .service	2022-07-07 20:26:31 UTC (rev 1248266)
+++ ipfs at .service	2022-07-07 20:26:54 UTC (rev 1248267)
@@ -1,10 +0,0 @@
-[Unit]
-Description=InterPlanetary File System (IPFS) daemon
-
-[Service]
-User=%i
-ExecStart=/usr/bin/ipfs daemon
-Restart=on-failure
-
-[Install]
-WantedBy=default.target

Copied: go-ipfs/repos/community-x86_64/ipfs at .service (from rev 1248266, go-ipfs/trunk/ipfs at .service)
===================================================================
--- ipfs at .service	                        (rev 0)
+++ ipfs at .service	2022-07-07 20:26:54 UTC (rev 1248267)
@@ -0,0 +1,10 @@
+[Unit]
+Description=InterPlanetary File System (IPFS) daemon
+
+[Service]
+User=%i
+ExecStart=/usr/bin/ipfs daemon
+Restart=on-failure
+
+[Install]
+WantedBy=default.target

Deleted: rb.patch
===================================================================
--- rb.patch	2022-07-07 20:26:31 UTC (rev 1248266)
+++ rb.patch	2022-07-07 20:26:54 UTC (rev 1248267)
@@ -1,13 +0,0 @@
-diff --git a/mk/golang.mk b/mk/golang.mk
-index 0b2a2c55a..2c7f24d75 100644
---- a/mk/golang.mk
-+++ b/mk/golang.mk
-@@ -12,7 +12,7 @@ GOTFLAGS ?=
- unexport GOFLAGS
- # Override so we can combine with the user's go flags.
- # Try to make building as reproducible as possible by stripping the go path.
--override GOFLAGS += "-asmflags=all='-trimpath=$(GOPATH)'" "-gcflags=all='-trimpath=$(GOPATH)'"
-+override GOFLAGS += "-trimpath"
- 
- ifeq ($(tarball-is),1)
-        GOFLAGS += -mod=vendor

Copied: go-ipfs/repos/community-x86_64/rb.patch (from rev 1248266, go-ipfs/trunk/rb.patch)
===================================================================
--- rb.patch	                        (rev 0)
+++ rb.patch	2022-07-07 20:26:54 UTC (rev 1248267)
@@ -0,0 +1,13 @@
+diff --git a/mk/golang.mk b/mk/golang.mk
+index 0b2a2c55a..2c7f24d75 100644
+--- a/mk/golang.mk
++++ b/mk/golang.mk
+@@ -12,7 +12,7 @@ GOTFLAGS ?=
+ unexport GOFLAGS
+ # Override so we can combine with the user's go flags.
+ # Try to make building as reproducible as possible by stripping the go path.
+-override GOFLAGS += "-asmflags=all='-trimpath=$(GOPATH)'" "-gcflags=all='-trimpath=$(GOPATH)'"
++override GOFLAGS += "-trimpath"
+ 
+ ifeq ($(tarball-is),1)
+        GOFLAGS += -mod=vendor



More information about the arch-commits mailing list