[arch-commits] Commit in skopeo/repos (2 files)
Frederik Schwan
freswa at gemini.archlinux.org
Mon Aug 2 21:26:59 UTC 2021
Date: Monday, August 2, 2021 @ 21:26:51
Author: freswa
Revision: 993128
archrelease: copy trunk to community-testing-x86_64
Added:
skopeo/repos/community-testing-x86_64/
skopeo/repos/community-testing-x86_64/PKGBUILD
(from rev 993126, skopeo/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: skopeo/repos/community-testing-x86_64/PKGBUILD (from rev 993126, skopeo/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2021-08-02 21:26:51 UTC (rev 993128)
@@ -0,0 +1,38 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+
+pkgname=skopeo
+pkgver=1.4.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=a44da449d35e4621e9993f406d5a4f98dd89965e #refs/tags/v1.4.0
+source=(git+$url#commit=$_commit)
+sha256sums=('SKIP')
+
+pkgver() {
+ cd ${pkgname}
+ git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+build() {
+ cd ${pkgname}
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+ make bin/skopeo 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