Files
termux-packages/root-packages/docker-compose/build.sh
termux-pacman-bot dd33263f33 bump(root/docker-compose): 2.36.2
This commit has been automatically submitted by Github Actions.
2025-05-23 18:42:50 +00:00

23 lines
910 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/docker/compose
TERMUX_PKG_DESCRIPTION="Compose is a tool for defining and running multi-container Docker applications."
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="2.36.2"
TERMUX_PKG_SRCURL="https://github.com/docker/compose/archive/v${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=a093a9bbc646f3f6772eb4e2096a3df02618b394568325e4972b9382b0dd67e8
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS=docker
termux_step_make() {
termux_setup_golang
export GOPATH=$TERMUX_PKG_BUILDDIR
cd $TERMUX_PKG_SRCDIR
mkdir bin/
if ! [ -z "$GOOS" ];then export GOOS=android;fi
go build -o bin/docker-compose -ldflags="-s -w -X github.com/docker/compose/v2/internal.Version=${TERMUX_PKG_VERSION}" ./cmd
}
termux_step_make_install() {
install -Dm755 -t "${TERMUX_PREFIX}"/libexec/docker/cli-plugins "${TERMUX_PKG_SRCDIR}"/bin/docker-compose
}