diff options
author | Cody P Schafer | 2020-05-22 22:30:38 -0400 |
---|---|---|
committer | Cody P Schafer | 2020-05-22 22:30:38 -0400 |
commit | a7c3a60171457bbc61dcf9263c35358d5495e2e7 (patch) | |
tree | 16e1ee9914eddd334f17b6965723e58b385ede84 | |
parent | ff14a3e27ea2b4be4450f3c2815ca788e1c38846 (diff) | |
download | aur-a7c3a60171457bbc61dcf9263c35358d5495e2e7.tar.gz |
update to 1.6.0 (and fix a bunch of flags & build issues)
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 15 insertions, 16 deletions
@@ -1,14 +1,14 @@ pkgbase = grpcurl pkgdesc = Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers - pkgver = 1.5.1 - pkgrel = 2 + pkgver = 1.6.0 + pkgrel = 1 url = https://github.com/fullstorydev/grpcurl arch = x86_64 license = MIT makedepends = go conflicts = grpcurl-bin - source = grpcurl-1.5.1.tar.gz::https://github.com/fullstorydev/grpcurl/archive/v1.5.1.tar.gz - md5sums = 2be962886db190fd11b5f4492ac979d9 + source = grpcurl-1.6.0.tar.gz::https://github.com/fullstorydev/grpcurl/archive/v1.6.0.tar.gz + md5sums = 77082b483193d08ff6ff126269d1714d pkgname = grpcurl @@ -1,32 +1,31 @@ # Maintainer: Cody Schafer <dev@codyps.com> pkgname=grpcurl -pkgver=1.5.1 -pkgrel=2 +pkgver=1.6.0 +pkgrel=1 pkgdesc="Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers" arch=(x86_64) url="https://github.com/fullstorydev/grpcurl" license=('MIT') makedepends=('go') source=("$pkgname-$pkgver.tar.gz::https://github.com/fullstorydev/grpcurl/archive/v$pkgver.tar.gz") -md5sums=('2be962886db190fd11b5f4492ac979d9') +md5sums=('77082b483193d08ff6ff126269d1714d') # really, `grpcurl-bin` should be conflicting with us instead of the oposite conflicts=('grpcurl-bin') + build() { cd "$pkgname-$pkgver" - go build \ - -trimpath \ - -mod=readonly \ - -modcacherw \ - -buildmode=pie \ - -ldflags "-extldflags ${LDFLAGS}" \ - -o build \ - ./cmd/grpcurl + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + go build -o build ./cmd/... } package() { cd "$pkgname-$pkgver" - install -Dm755 grpcurl "${pkgdir}/usr/bin/grpcurl" + install -Dm755 build/grpcurl "${pkgdir}/usr/bin/grpcurl" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |