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

Frederik Schwan freswa at gemini.archlinux.org
Thu Feb 3 12:18:30 UTC 2022


    Date: Thursday, February 3, 2022 @ 12:18:30
  Author: freswa
Revision: 1124862

archrelease: copy trunk to community-testing-x86_64

Added:
  skopeo/repos/community-testing-x86_64/
  skopeo/repos/community-testing-x86_64/PKGBUILD
    (from rev 1124861, skopeo/trunk/PKGBUILD)

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

Copied: skopeo/repos/community-testing-x86_64/PKGBUILD (from rev 1124861, skopeo/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2022-02-03 12:18:30 UTC (rev 1124862)
@@ -0,0 +1,43 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+
+pkgname=skopeo
+pkgver=1.6.0
+pkgrel=1
+pkgdesc='A command line utility for various operations on container images and image repositories.'
+arch=(x86_64)
+url='https://github.com/containers/skopeo'
+license=(APACHE)
+depends=(gpgme device-mapper containers-common)
+makedepends=(go go-md2man btrfs-progs git systemd)
+_commit=e4b79d7741c40434838ece2790be537083fc2a04	#refs/tags/v1.6.0
+source=(git+$url#commit=$_commit)
+sha256sums=('SKIP')
+
+pkgver() {
+  cd ${pkgname}
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare(){
+  cd ${pkgname}
+  sed -i 's|.PHONY: bin/skopeo||' Makefile
+  sed -i 's|-gcflags "$(GOGCFLAGS)"||' Makefile
+}
+
+build() {
+  cd ${pkgname}
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  make bin/skopeo GO_DYN_FLAGS="-buildmode=pie -trimpath" BUILDTAGS='containers_image_ostree_stub'
+  make docs
+}
+
+package() {
+  cd $pkgname
+  make DESTDIR="${pkgdir}" PREFIX="/usr" install
+  rm -rf "${pkgdir}/etc/containers/registries.d"
+  rm "${pkgdir}/etc/containers/policy.json"
+}



More information about the arch-commits mailing list