1 # Maintainer: Anatol Pomozov
6 pkgdesc='Tarantool Cartridge command-line utility'
8 url="https://tarantool.io/"
10 options=(!lto) # due to go 'relocation target _cgo_yield not defined' error
13 source=(cartridge-cli-$pkgver.tar.gz::https://github.com/tarantool/cartridge-cli/archive/refs/tags/$pkgver.tar.gz)
14 sha256sums=('75a304b6445b7d30b917bf17d46e8498bd93177cec395f9e5596ae7b52d67ecb')
18 export CGO_CPPFLAGS="${CPPFLAGS}"
19 export CGO_CFLAGS="${CFLAGS}"
20 export CGO_CXXFLAGS="${CXXFLAGS}"
21 export CGO_LDFLAGS="${LDFLAGS}"
22 export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
28 install -Dm755 ./cartridge "$pkgdir"/usr/bin/cartridge
29 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"