blob: 2f79de459fc8333af77e4f7e53540e0e6f23553a (
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
|
# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
pkgname=apko
pkgver=0.5.0
pkgrel=3
pkgdesc="declarative APK-based container building tool with support for Sigstore signatures"
url="https://github.com/chainguard-dev/apko"
arch="all"
license="Apache-2.0"
# Explicitly depend on apk-tools, so that this package can be used without alpine-base.
depends="apk-tools"
makedepends="go"
subpackages="
$pkgname-bash-completion
$pkgname-fish-completion
$pkgname-zsh-completion
"
source="https://github.com/chainguard-dev/apko/archive/v$pkgver/apko-$pkgver.tar.gz"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
mkdir build
go build -o build/ -tags -tags=pivkey,pkcs11key "$builddir"/...
for i in bash fish zsh; do
"$builddir"/build/apko completion $i > "$builddir"/apko.$i
done
}
check() {
go test "$builddir"/...
}
package() {
install -Dm755 "$builddir"/build/apko "$pkgdir"/usr/bin/apko
install -Dm644 "$builddir"/apko.bash "$pkgdir"/usr/share/bash-completion/completions/apko
install -Dm644 "$builddir"/apko.fish "$pkgdir"/usr/share/fish/completions/apko.fish
install -Dm644 "$builddir"/apko.zsh "$pkgdir"/usr/share/zsh/site-functions/_apko
}
sha512sums="
7560b11f9e58dd644df817a95a166c0d5f5b3e414a3554fc0c5c797401893fc888ca1a840461a11dfdcf202b5b7acb71bd282aec959cd4173a2424bf39922cf3 apko-0.5.0.tar.gz
"
|