42 lines
1.2 KiB
Plaintext

maintainer="fossdd <fossdd@pwned.life>"
pkgname=melange
pkgver=0.22.2
pkgrel=0
pkgdesc="Build apk packages using declarative pipelines"
url="https://github.com/chainguard-dev/melange"
# 32-bit: /home/buildozer/go/pkg/mod/go.step.sm/crypto@v0.58.1/internal/utils/convert.go:33:18: cannot convert math.MaxUint32 (untyped int constant 4294967295) to type T
arch="all !armhf !armv7 !x86"
license="Apache-2.0"
makedepends="go"
subpackages="
$pkgname-bash-completion
$pkgname-fish-completion
$pkgname-zsh-completion
"
source="https://github.com/chainguard-dev/melange/archive/v$pkgver/melange-$pkgver.tar.gz"
build() {
mkdir build
go build -o build/ .
for i in bash fish zsh; do
./build/melange completion $i > melange.$i
done
}
check() {
(unset SOURCE_DATE_EPOCH; go test ./...)
}
package() {
install -Dm755 build/melange -t "$pkgdir"/usr/bin/
install -Dm644 melange.bash "$pkgdir"/usr/share/bash-completion/completions/melange
install -Dm644 melange.fish "$pkgdir"/usr/share/fish/vendor_completions.d/melange.fish
install -Dm644 melange.zsh "$pkgdir"/usr/share/zsh/site-functions/_melange
}
sha512sums="
c25617b7d6165331dd889fab007ed89bd2d9dd904cffb641c8cfdb76e626315130e7769849dca1f40d0c88e4def2e7a6a3d9172b0d8403b2485a2d5df604d42b melange-0.22.2.tar.gz
"