blob: be147e799a65d0d0f450151bd86c741e1e14a4ed (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=skopeo
pkgver=1.9.2
pkgrel=1
# set this to the gitrev of the version
_gitrev=2eac0f463a6d2d9d8312c4a52c1e30e8bb8bf7f8
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="
bash
go
go-md2man
linux-headers
btrfs-progs-dev
glib-dev
gpgme-dev
lvm2-dev
ostree-dev
libselinux-dev
"
subpackages="
$pkgname-doc
$pkgname-bash-completion
$pkgname-fish-completion:_fish:noarch
$pkgname-zsh-completion
"
source="https://github.com/containers/skopeo/archive/v$pkgver/skopeo-$pkgver.tar.gz"
# secfixes:
# 1.5.2-r0:
# - CVE-2021-41190
export GOPATH="$srcdir"
export GOCACHE="$srcdir/go-cache"
export GOTMPDIR="$srcdir"
export GOMODCACHE="$srcdir/go"
build() {
make GIT_COMMIT=$_gitrev all
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" PREFIX=/usr install-docs install-completions
install -D -m755 -t "$pkgdir"/usr/bin bin/skopeo
}
# manual workaround until https://gitlab.alpinelinux.org/alpine/abuild/-/merge_requests/136
_fish() {
pkgdesc="Fish completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel fish"
amove usr/share/fish/vendor_completions.d
}
sha512sums="
8d9aad3a6190f0c9bdd85485423dc257408b27088300f8a891615bf47f3ef16e02035d69ea15a75a93f375e6e7ad465f90951725e4ee1509463f05447c7ce174 skopeo-1.9.2.tar.gz
"
|