*: Fix indent in build.sh

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2023-05-07 16:23:14 +09:00
parent ebd27bb66b
commit 15ceba1749
5 changed files with 33 additions and 33 deletions

View File

@ -8,17 +8,17 @@ TERMUX_PKG_SHA256=5b7cab965af67abd581af167d00399397f8596799a72425c55d96a6e0126b3
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"
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
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
install -Dm700 ${TERMUX_PKG_BUILDDIR}/src/github.com/bufbuild/buf/buf \
$TERMUX_PREFIX/bin/buf
}

View File

@ -13,7 +13,7 @@ TERMUX_PKG_RECOMMENDS="ninja"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_post_get_source() {
git fetch --unshallow
git fetch --unshallow
git checkout $_COMMIT
local version="$(git log -1 --format=%cs | sed 's/-/./g')"

View File

@ -13,12 +13,12 @@ TERMUX_PKG_REPLACES="librsync-dev"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DPERL_EXECUTABLE=$(command -v perl)"
termux_step_post_get_source() {
# Do not forget to bump revision of reverse dependencies and rebuild them
# after SOVERSION is changed.
local _SOVERSION=2
# Do not forget to bump revision of reverse dependencies and rebuild them
# after SOVERSION is changed.
local _SOVERSION=2
local v=$(echo ${TERMUX_PKG_VERSION#*:} | cut -d . -f 1)
if [ "${v}" != "${_SOVERSION}" ]; then
termux_error_exit "SOVERSION guard check failed."
fi
local v=$(echo ${TERMUX_PKG_VERSION#*:} | cut -d . -f 1)
if [ "${v}" != "${_SOVERSION}" ]; then
termux_error_exit "SOVERSION guard check failed."
fi
}

View File

@ -14,25 +14,25 @@ TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
termux_setup_golang
go install -v golang.org/x/tools/cmd/stringer@latest
go install -v github.com/tinylib/msgp@f3635b96e4838a6c773babb65ef35297fe5fe2f9
go install -v golang.org/x/tools/cmd/stringer@latest
go install -v github.com/tinylib/msgp@f3635b96e4838a6c773babb65ef35297fe5fe2f9
}
termux_step_make() {
local _COMMITID=$(git ls-remote https://github.com/minio/minio refs/tags/RELEASE.${_DATE}T${_TIME}Z | cut -f1)
local _SHORTCOMMITID=$(git ls-remote https://github.com/minio/minio refs/tags/RELEASE.${_DATE}T${_TIME}Z | head -c 12)
local _COMMITID=$(git ls-remote https://github.com/minio/minio refs/tags/RELEASE.${_DATE}T${_TIME}Z | cut -f1)
local _SHORTCOMMITID=$(git ls-remote https://github.com/minio/minio refs/tags/RELEASE.${_DATE}T${_TIME}Z | head -c 12)
MINIOLDFLAGS="\
-w -s \
-X 'github.com/minio/minio/cmd.Version=${_DATE}T${_TIME}Z' \
-X 'github.com/minio/minio/cmd.CopyrightYear=$(date +%Y)' \
-X 'github.com/minio/minio/cmd.ReleaseTag=RELEASE.${_DATE}T${_TIME}Z'\
-X 'github.com/minio/minio/cmd.CommitID=${_COMMITID}' \
-X 'github.com/minio/minio/cmd.ShortCommitID=${_SHORTCOMMITID}' \
-X 'github.com/minio/minio/cmd.GOPATH=$(go env GOPATH)' \
-X 'github.com/minio/minio/cmd.GOROOT=$(go env GOROOT)' \
"
CGO_ENABLED=0 go build -tags kqueue -trimpath --ldflags="$MINIOLDFLAGS" -o minio
MINIOLDFLAGS="\
-w -s \
-X 'github.com/minio/minio/cmd.Version=${_DATE}T${_TIME}Z' \
-X 'github.com/minio/minio/cmd.CopyrightYear=$(date +%Y)' \
-X 'github.com/minio/minio/cmd.ReleaseTag=RELEASE.${_DATE}T${_TIME}Z'\
-X 'github.com/minio/minio/cmd.CommitID=${_COMMITID}' \
-X 'github.com/minio/minio/cmd.ShortCommitID=${_SHORTCOMMITID}' \
-X 'github.com/minio/minio/cmd.GOPATH=$(go env GOPATH)' \
-X 'github.com/minio/minio/cmd.GOROOT=$(go env GOROOT)' \
"
CGO_ENABLED=0 go build -tags kqueue -trimpath --ldflags="$MINIOLDFLAGS" -o minio
}
termux_step_make_install() {
install -Dm700 -t "${TERMUX_PREFIX}"/bin minio

View File

@ -23,7 +23,7 @@ termux_step_post_get_source() {
termux_step_configure() {
termux_setup_rust
export CARGO_BUILD_TARGET=${CARGO_TARGET_NAME}
export PYO3_CROSS_LIB_DIR=$TERMUX_PREFIX/lib
export PYO3_CROSS_LIB_DIR=$TERMUX_PREFIX/lib
}
termux_step_create_debscripts() {