0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-09-26 06:55:00 +00:00
Files
termux-packages/packages/buf/build.sh
Termux Github Actions 9321aa1e5b bump(main/buf): 1.53.0
This commit has been automatically submitted by Github Actions.
2025-04-21 18:09:46 +00:00

25 lines
861 B
Bash

TERMUX_PKG_HOMEPAGE=https://buf.build
TERMUX_PKG_DESCRIPTION="A new way of working with Protocol Buffers"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1.53.0"
TERMUX_PKG_SRCURL=https://github.com/bufbuild/buf/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=8051e6ec73d6dbf5b862fd3319128a617f18fb06f86aac89c58c02f514abc1ca
TERMUX_PKG_AUTO_UPDATE=true
termux_step_make() {
termux_setup_golang
cd "$TERMUX_PKG_SRCDIR"
mkdir -p "${TERMUX_PKG_BUILDDIR}/src/github.com/bufbuild"
cp -a "${TERMUX_PKG_SRCDIR}" "${TERMUX_PKG_BUILDDIR}/src/github.com/bufbuild/buf"
cd "${TERMUX_PKG_BUILDDIR}/src/github.com/bufbuild/buf"
go mod download
go build -ldflags "-s -w" -trimpath ./cmd/buf
}
termux_step_make_install() {
install -Dm700 ${TERMUX_PKG_BUILDDIR}/src/github.com/bufbuild/buf/buf \
$TERMUX_PREFIX/bin/buf
}