1 # Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
6 pkgdesc="Declarative APK-based container building tool with support for sigstore signatures"
7 url="https://github.com/chainguard-dev/apko"
10 depends=('apk-tools' 'alpine-keyring')
12 source=("https://github.com/chainguard-dev/apko/archive/v${pkgver}/apko-${pkgver}.tar.gz")
13 b2sums=('095551b193fc97f9759b914831eda1b7bb0316ae6aff3f0c77fb025a65c651409e34f19987e3030ad19e74f8c9e7522363ae5d6e76346a1319136dbd4dead423')
16 cd "${pkgname}-${pkgver}"
18 CGO_LDFLAGS="${LDFLAGS}" \
19 GOFLAGS="-trimpath -buildmode=pie -mod=readonly" \
20 go build -o build/ -tags -tags=pivkey,pkcs11key ./...
22 for i in bash fish zsh; do
23 build/apko completion ${i} > ./apko.${i}
28 cd "${pkgname}-${pkgver}"
33 cd "${pkgname}-${pkgver}"
34 install -Dm755 build/apko "${pkgdir}"/usr/bin/apko
35 install -Dm644 apko.bash "${pkgdir}"/usr/share/bash-completion/completions/apko
36 install -Dm644 apko.fish "${pkgdir}"/usr/share/fish/completions/apko.fish
37 install -Dm644 apko.zsh "${pkgdir}"/usr/share/zsh/site-functions/_apko