[arch-commits] Commit in skopeo/repos (2 files)
Frederik Schwan
freswa at gemini.archlinux.org
Fri Mar 25 12:33:21 UTC 2022
Date: Friday, March 25, 2022 @ 12:33:21
Author: freswa
Revision: 1176351
archrelease: copy trunk to community-testing-x86_64
Added:
skopeo/repos/community-testing-x86_64/
skopeo/repos/community-testing-x86_64/PKGBUILD
(from rev 1176350, skopeo/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: skopeo/repos/community-testing-x86_64/PKGBUILD (from rev 1176350, skopeo/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2022-03-25 12:33:21 UTC (rev 1176351)
@@ -0,0 +1,43 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+
+pkgname=skopeo
+pkgver=1.7.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=f45ae950aacb7b61ec13223fc22269f2fe270eab #refs/tags/v1.7.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