Package Details: regclient-regsync 0.7.2-1

Git Clone URL: https://aur.archlinux.org/regclient.git (read-only, click to copy)
Package Base: regclient
Description: Utility for mirroring docker repositories
Upstream URL: https://github.com/regclient/regclient
Licenses: Apache-2.0
Submitter: gebi
Maintainer: etorres4
Last Packager: etorres4
Votes: 1
Popularity: 0.049178
First Submitted: 2022-02-19 02:54 (UTC)
Last Updated: 2024-11-11 03:12 (UTC)

Latest Comments

etorres4 commented on 2024-09-27 18:26 (UTC)

@kemelzaidan This looks great, I've added your patch and pushed this up. Thanks!

kemelzaidan commented on 2024-09-27 14:14 (UTC)

Hi @etorres4, I've made a PKGBUILD patch in order to fix some of the namcap warnings and errors. The build flags are the ones suggested for Golang in the wiki guidelines. Feel free to reach out and ask for any doubts.

diff --git a/PKGBUILD b/PKGBUILD
index f1d6a3f..1bd4563 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,8 +11,9 @@ pkgrel=1
 pkgdesc='Docker and OCI Registry tooling - regctl / regsync / regbot'
 arch=('x86_64' 'aarch64')
 url='https://github.com/regclient/regclient'
-license=('Apache')
-makedepends=('go' 'git')
+license=('Apache-2.0')
+makedepends=('go')
+depends=('glibc')
 source=("https://github.com/regclient/regclient/archive/v$pkgver/$pkgbase-$pkgver.tar.gz")
 # how to build git tag from github
 #source=("$pkgbase-$pkgver.tar.gz::https://github.com/regclient/regclient/archive/refs/tags/v$pkgver.tar.gz")
@@ -20,23 +21,20 @@ sha256sums=('17042a6f8b5d5bf25ce916347a0b314f7dd91a6c06f78761a4e5fe21f5eb9632')
 _bins=('regctl' 'regsync' 'regbot')

 build() {
-  local _commit
-  _commit="$(bsdcat "$pkgbase-$pkgver.tar.gz" | git get-tar-commit-id)"
-  mkdir -p build/ && cd build/
-  # we want "clean" go binaries
-  export CGO_ENABLED=0
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
+  # export CGO_ENABLED=0

-  # FIXME - what is the correct version here? the aur repo it's build from or the upstream repo?
-  # currently the "real" program version is not shown beacuse it's implicitely taken from the git tag from repo...
-  #( cd "../$pkgbase-$pkgver" && echo "{\"VCSRef\": \"${_commit}\", \"VCSTag\": \"${pkgver}\"}" >./embed/version.json )
+  mkdir -p build/ && cd build/

   for i in "${_bins[@]}"; do
     (
       cd "../$pkgbase-$pkgver"
-      #cp ./embed/version.json "cmd/$i/embed/"
-      go build -ldflags "-s -w -extldflags -static" -tags nolegacy -trimpath -o ../build ./cmd/$i
+      go build -o ../build/$i ./cmd/$i
     )
-
     ./$i completion bash >$i.bash
     ./$i completion zsh >$i.zsh
   done
@@ -66,6 +64,7 @@ _pkgcommon() {
   install -Dm755 "$_pkg" -t   "$pkgdir/usr/bin"
   install -Dm644 "$_pkg.bash" "$pkgdir/usr/share/bash-completion/completions/$_pkg"
   install -Dm644 "$_pkg.zsh"  "$pkgdir/usr/share/zsh/site-functions/_$_pkg"
+  install -Dm644 "../$pkgbase-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgbase-$_pkg/LICENSE"
 }

 package_regclient-regctl() {

You can also add the following .nvchecker.toml file:

[regclient]
source = "git"
git = "https://github.com/regclient/regclient.git"
prefix = "v"

gebi commented on 2024-07-08 18:10 (UTC)

no, pls feel free to orphan regclient. I've stopped my arch journey and started migrating to nixos.

morricone commented on 2024-06-21 13:25 (UTC)

That last update is a long time ago Any objections to me orphaning the package?