archrelease: copy trunk to community-any
[ArchLinux/community.git] / cartridge-cli / trunk / PKGBUILD
blob2956beffe50b373d03576d8c6b035c355271c056
1 # Maintainer: Anatol Pomozov
3 pkgname=cartridge-cli
4 pkgrel=1
5 pkgver=2.12.5
6 pkgdesc='Tarantool Cartridge command-line utility'
7 arch=(x86_64)
8 url="https://tarantool.io/"
9 license=(BSD)
10 options=(!lto) # due to go 'relocation target _cgo_yield not defined' error
11 depends=(glibc)
12 makedepends=(go mage)
13 source=(cartridge-cli-$pkgver.tar.gz::https://github.com/tarantool/cartridge-cli/archive/refs/tags/$pkgver.tar.gz)
14 sha256sums=('75a304b6445b7d30b917bf17d46e8498bd93177cec395f9e5596ae7b52d67ecb')
16 build() { 
17   cd $pkgname-$pkgver
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"
23   mage build
26 package() {
27   cd $pkgname-$pkgver
28   install -Dm755 ./cartridge "$pkgdir"/usr/bin/cartridge
29   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"