blob: e3ec1f13ab2a6df6f65c442e8dd9f9986e12ba11 (
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
|
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=skopeo
pkgver=0.1.40
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() {
export GOPATH="$srcdir"
go build -o bin/$pkgname ./cmd/$pkgname
}
check() {
make check
}
package() {
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
}
cleanup_srcdir() {
go clean -modcache
default_cleanup_srcdir
}
sha512sums="161edb8afa961e48e314cf70a4fcebd971a45a50fc11eab6ec751ba4eb05a8be011d16b83c4ed1fa9d6336846da5f518da006d4476ee4e29a160c629820773d3 skopeo-0.1.40.tar.gz"
|