# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=skopeo pkgver=0.1.39 pkgrel=1 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="c4aadc40f9d637c628cd96c204b3e9bc3a928c145521bed2e5046508fc936ff99442dda8b4a4cdd85c4d04e64a9ccee5ea8d563c6ebf4e6020d50d96b921716c skopeo-0.1.39.tar.gz"