637da791ff
recipes/dev/gcc13 was claiming name='cxx' — conflicted with local/recipes/dev/gcc-native also claiming 'cxx'. Renamed to match directory names for unique package identification by the cookbook.
28 lines
785 B
TOML
28 lines
785 B
TOML
[package]
|
|
name = "lazygit"
|
|
version = "0.1.0"
|
|
|
|
#TODO: Incomplete std/syscall porting, or vendor patches
|
|
[source]
|
|
git = "https://github.com/jesseduffield/lazygit"
|
|
shallow_clone = true
|
|
[build]
|
|
template = "custom"
|
|
dev-dependencies = [
|
|
"host:go"
|
|
]
|
|
script = """
|
|
export GOTOOLCHAIN=local
|
|
case "${TARGET}" in
|
|
x86_64-unknown-linux-gnu) export GOARCH=amd64 GOOS=linux;;
|
|
aarch64-unknown-linux-gnu) export GOARCH=arm64 GOOS=linux;;
|
|
i586-unknown-redox) export GOARCH=386 GOOS=redox;;
|
|
x86_64-unknown-redox) export GOARCH=amd64 GOOS=redox;;
|
|
aarch64-unknown-redox) export GOARCH=arm64 GOOS=redox;;
|
|
riscv64gc-unknown-redox) export GOARCH=riscv64 GOOS=redox;;
|
|
esac
|
|
|
|
mkdir -p $COOKBOOK_STAGE/usr/bin
|
|
go build -C ${COOKBOOK_SOURCE} -o $COOKBOOK_STAGE/usr/bin/lazygit
|
|
"""
|