2021-12-09 06:28:37 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/docker/compose
|
|
|
|
TERMUX_PKG_DESCRIPTION="Compose is a tool for defining and running multi-container Docker applications."
|
2022-03-26 00:38:45 +01:00
|
|
|
TERMUX_PKG_SHA256=10657bbca710b7bfe7e17f259a4ab6cf69b890e7ac4b3bfc2444ef3086bd89cb
|
|
|
|
TERMUX_PKG_VERSION="2.3.4"
|
2021-12-09 06:28:37 +01:00
|
|
|
TERMUX_PKG_SRCURL="https://github.com/docker/compose/archive/v${TERMUX_PKG_VERSION}.tar.gz"
|
|
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
2022-04-20 12:03:18 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-12-09 06:28:37 +01:00
|
|
|
TERMUX_PKG_DEPENDS=docker
|
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
termux_setup_golang
|
|
|
|
export GOPATH=$TERMUX_PKG_BUILDDIR
|
|
|
|
cd $TERMUX_PKG_SRCDIR
|
|
|
|
mkdir bin/
|
2022-01-24 05:35:33 +01:00
|
|
|
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
|
2021-12-09 06:28:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
install -Dm755 -t "${TERMUX_PREFIX}"/bin "${TERMUX_PKG_SRCDIR}"/bin/docker-compose
|
|
|
|
}
|