mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 14:13:36 +00:00
a82f9ef4c6
This commit has been automatically submitted by Github Actions.
37 lines
1.5 KiB
Bash
37 lines
1.5 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://min.io/
|
|
TERMUX_PKG_DESCRIPTION="Multi-Cloud Object Storage"
|
|
TERMUX_PKG_LICENSE="AGPL-V3"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="2024.11.07.00.52.20"
|
|
_VERSION=$(sed 's/\./T/3;s/\./-/g' <<< $TERMUX_PKG_VERSION)
|
|
TERMUX_PKG_SRCURL=https://github.com/minio/minio/archive/refs/tags/RELEASE.${_VERSION}Z.tar.gz
|
|
TERMUX_PKG_SHA256=9f6ba4a0a78dad3f19ab99880dbaef9d2bd4a0d5a24ad7200d064bdefa7e6435
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_UPDATE_VERSION_SED_REGEXP='s/T/-/g;s/[^0-9-]//g;s/-/./g'
|
|
TERMUX_PKG_DEPENDS="resolv-conf"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_pre_configure() {
|
|
termux_setup_golang
|
|
}
|
|
|
|
termux_step_make() {
|
|
local _COMMITID=$(git ls-remote https://github.com/minio/minio refs/tags/RELEASE.${_VERSION}Z | cut -f1)
|
|
local _SHORTCOMMITID=$(git ls-remote https://github.com/minio/minio refs/tags/RELEASE.${_VERSION}Z | head -c 12)
|
|
|
|
MINIOLDFLAGS="\
|
|
-w -s \
|
|
-X 'github.com/minio/minio/cmd.Version=${_VERSION}Z' \
|
|
-X 'github.com/minio/minio/cmd.CopyrightYear=$(date +%Y)' \
|
|
-X 'github.com/minio/minio/cmd.ReleaseTag=RELEASE.${_VERSION}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)' \
|
|
"
|
|
go build -tags kqueue -trimpath --ldflags="$MINIOLDFLAGS" -o minio
|
|
}
|
|
termux_step_make_install() {
|
|
install -Dm700 -t "${TERMUX_PREFIX}"/bin minio
|
|
}
|