void-packages/srcpkgs/docker-compose/template

23 lines
893 B
Bash

# Template file for 'docker-compose'
pkgname=docker-compose
version=2.29.1
revision=2
build_style=go
go_import_path="github.com/docker/compose/v2"
go_package="${go_import_path}/cmd"
go_ldflags="-X ${go_import_path}/internal.Version=v${version}"
depends="docker-cli"
short_desc="Tool to define and run multi-container Docker applications"
maintainer="Filip Rojek <filip@filiprojek.cz>"
license="Apache-2.0"
homepage="https://docs.docker.com/compose/"
changelog="https://github.com/docker/compose/releases"
distfiles="https://github.com/docker/compose/archive/refs/tags/v${version}.tar.gz"
checksum=9749d621b1b8bc1f5881741e0cbad20b5133a0aeedb9339af06b0187be8141b1
post_install() {
vmkdir usr/libexec/docker/cli-plugins
mv ${DESTDIR}/usr/bin/cmd ${DESTDIR}/usr/libexec/docker/cli-plugins/docker-compose
ln -s /usr/libexec/docker/cli-plugins/docker-compose ${DESTDIR}/usr/bin/docker-compose
}