mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-18 15:36:59 +02:00
72 lines
2.1 KiB
Text
72 lines
2.1 KiB
Text
maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
|
|
pkgname=please-build
|
|
pkgver=17.15.1
|
|
pkgrel=1
|
|
pkgdesc="High-performance, extensible build system for reproducible multi-language builds"
|
|
url="https://please.build/"
|
|
# The only architectures supported upstream
|
|
arch="x86_64 aarch64"
|
|
license="Apache-2.0"
|
|
makedepends="go bash linux-headers"
|
|
checkdepends="python3"
|
|
subpackages="
|
|
$pkgname-tools
|
|
$pkgname-bash-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/thought-machine/please/archive/refs/tags/v$pkgver.tar.gz
|
|
fix-test.patch
|
|
"
|
|
builddir="$srcdir/please-$pkgver"
|
|
options="net" # download Go modules
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
local _buildargs="--plain_output --noupdate --profile=alpine"
|
|
go run src/please.go build $_buildargs //src:please
|
|
|
|
./plz-out/bin/src/please build $_buildargs \
|
|
//tools/sandbox:please_sandbox \
|
|
//tools/please_shim:please_shim \
|
|
//tools/build_langserver:build_langserver
|
|
|
|
./plz-out/bin/src/please --completion_script > plz.bash
|
|
}
|
|
|
|
check() {
|
|
"$builddir"/plz-out/bin/src/please test \
|
|
--plain_output --noupdate --profile=alpine \
|
|
--exclude=e2e
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 plz-out/bin/src/please "$pkgdir"/usr/bin/plz
|
|
|
|
install -Dm755 -t "$pkgdir"/usr/bin/ \
|
|
plz-out/bin/tools/build_langserver/build_langserver \
|
|
plz-out/bin/tools/sandbox/please_sandbox \
|
|
plz-out/bin/tools/please_shim/please_shim
|
|
|
|
install -Dm644 plz.bash \
|
|
"$pkgdir"/usr/share/bash-completion/completions/plz
|
|
install -Dm644 plz.bash \
|
|
"$pkgdir"/usr/share/zsh/site-functions/_plz
|
|
}
|
|
|
|
tools() {
|
|
pkgdesc="External utilities for Please build system"
|
|
|
|
amove \
|
|
usr/bin/build_langserver \
|
|
usr/bin/please_sandbox \
|
|
usr/bin/please_shim
|
|
}
|
|
|
|
sha512sums="
|
|
1738ad149ecb0f82131b982145b64223d74170ba19ffd8a50836c45bf171fac6c71d69250a51099431f58bba6c22f8fd4469bdb804c4716bae57673ed3177eee please-build-17.15.1.tar.gz
|
|
b28a5919b3550b5f8f3a460abefe3c2595aed17305486d328a384936138aa9fde01cf99932c088d472dc8df80d9741c67a36abf1799ac346596c8ccbcfe479f5 fix-test.patch
|
|
"
|