aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2018-12-16 14:37:29 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2019-01-02 08:02:12 +0000
commitbdec9bd6a68ddb5dbf0255949c114efda4cd6388 (patch)
tree469f16d6c5769b993c738bff8c5791caabdfe116
parent79266aa6617ac873a9e813417f8a55885bb19390 (diff)
downloadaports-bdec9bd6a68ddb5dbf0255949c114efda4cd6388.tar.gz
aports-bdec9bd6a68ddb5dbf0255949c114efda4cd6388.tar.bz2
aports-bdec9bd6a68ddb5dbf0255949c114efda4cd6388.tar.xz
community/skopeo: new aport
This is added to community as its a dep of lxc 3.x oci template (optional install). More info: https://brauner.github.io/2018/02/27/lxc-removes-legacy-template-build-system.html
-rw-r--r--community/skopeo/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/community/skopeo/APKBUILD b/community/skopeo/APKBUILD
new file mode 100644
index 0000000000..68330b673f
--- /dev/null
+++ b/community/skopeo/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
+# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
+pkgname=skopeo
+pkgver=0.1.32
+pkgrel=0
+pkgdesc="Work with remote images registries - retrieving information, images, signing content"
+url="https://github.com/containers/skopeo"
+arch="all"
+license="Apache-2.0"
+options="!check" # needs docker
+makedepends="
+ go
+ linux-headers
+ btrfs-progs-dev
+ glib-dev
+ gpgme-dev
+ lvm2-dev
+ ostree-dev
+ libselinux-dev
+ "
+source="skopeo-$pkgver.tar.gz::https://github.com/containers/skopeo/archive/v$pkgver.tar.gz"
+builddir="$srcdir/src/github.com/containers/$pkgname"
+
+prepare() {
+ mkdir -p ${builddir%/*}
+ mv "$srcdir"/$pkgname-$pkgver "$builddir"/
+ default_prepare
+}
+
+build() {
+ cd "$builddir"
+ export GOPATH="$srcdir"
+ go build -o bin/$pkgname ./cmd/$pkgname
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ mkdir -p "$pkgdir"/var/lib/atomic/sigstore
+ install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname
+ install -Dm644 "$builddir"/default-policy.json \
+ "$pkgdir"/etc/containers/policy.json
+ install -Dm644 "$builddir"/default.yaml \
+ "$pkgdir"/etc/containers/registries.d/default.yaml
+}
+
+sha512sums="c52eeee85aa01448c9742d4e415e3ce6f2e0ef4e26a55758202baecb573ad8e3efb94c762d4c303fb21b896998b32e19f919a7382dfd6b17df2a96d66d07267b skopeo-0.1.32.tar.gz"