blob: 4142ebb1965e1ec52eb33d081b01e3b0de9b6a60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Thomas Weißschuh <aur t-8ch de>
pkgname=docker-compose-cli
pkgver=1.0.35
pkgrel=1
pkgdesc="Easily run your Compose application to the cloud with compose-cli"
arch=('x86_64')
url="https://github.com/docker/compose-cli"
license=(Apache-2.0)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/docker/compose-cli/archive/refs/tags/v${pkgver}.tar.gz")
depends=('docker')
makedepends=('go')
sha256sums=('f1b574930b878cfa976a8f23b49784ea180b6469f9209853e3e5ca797c699b2a')
prepare(){
cd "compose-cli-$pkgver"
sed -i 's#com.docker.cli#docker#' \
cli/mobycli/exec.go \
api/context/store/storedefault.go
mkdir -p build/
}
build() {
cd "compose-cli-$pkgver"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
go build \
-o build \
-ldflags="-X github.com/docker/compose-cli/internal.Version=${pkgver}" \
./cli/...
}
package() {
cd "compose-cli-$pkgver"
install -Dm755 build/cli "$pkgdir"/usr/bin/$pkgname
}
|