commit ebeacaa93f105edb62e77a162c232333e5dc6cf9 Author: Hunter Wittenborn Date: Sun Dec 19 04:45:51 2021 -0600 Initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..709c186 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +generated-by = makedeb-makepkg + +pkgbase = docker-compose + pkgdesc = Define and run multi-container applications with Docker + pkgver = 2.2.2 + pkgrel = 1 + url = https://docs.docker.com/compose/ + arch = any + license = Apache-2.0 + depends = golang-go>=1.17 + source = https://github.com/docker/compose/archive/refs/tags/v2.2.2.tar.gz + sha256sums = SKIP + +pkgname = docker-compose diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..0b624d1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Hunter Wittenborn +pkgname=docker-compose +pkgver=2.2.2 +pkgrel=1 +pkgdesc='Define and run multi-container applications with Docker' +arch=('any') +license=('Apache-2.0') +depends=('golang-go>=1.17') +url='https://docs.docker.com/compose/' + +source=("https://github.com/docker/compose/archive/refs/tags/v${pkgver}.tar.gz") +sha256sums=('SKIP') + +build() { + cd "compose-${pkgver}/" + go build -trimpath -o "${pkgname}" ./cmd +} + +package() { + cd "compose-${pkgver}/" + install -Dm 755 "./${pkgname}" "${pkgdir}/usr/lib/docker/cli-plugins/${pkgname}" + install -d "${pkgdir}/usr/bin/" + ln -s "/usr/lib/docker/cli-plugins/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" +}