aboutsummaryrefslogtreecommitdiffstats
path: root/community/skopeo/APKBUILD
blob: 2deec29f5e78e62bdd3688314438a5607ebf10f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=skopeo
pkgver=1.3.1
pkgrel=1
pkgdesc="Work with remote images registries - retrieving information, images, signing content"
url="https://github.com/containers/skopeo"
license="Apache-2.0"
arch="all"
options="chmod-clean !check" # needs docker
depends="containers-common"
makedepends="
	go
	go-md2man
	linux-headers
	btrfs-progs-dev
	glib-dev
	gpgme-dev
	lvm2-dev
	ostree-dev
	libselinux-dev
	"
subpackages="$pkgname-doc $pkgname-bash-completion"
source="https://github.com/containers/skopeo/archive/v$pkgver/skopeo-$pkgver.tar.gz"

export GOPATH="$srcdir"

build() {
	go build -o bin/$pkgname ./cmd/$pkgname
}

check() {
	make check
}

package() {
	make PREFIX="$pkgdir"/usr DESTDIR="$pkgdir" install-binary install-docs install-completions
}

sha512sums="
65b8ba735bd409b25b56a5538de4e09edfd11d684752a6e9d28037d0f2b80aef80796c2e9588fcf192d24bd885cc7b2d65b0ee7f7c34d18b2eacc25816da5d36  skopeo-1.3.1.tar.gz
"