blob: a7a2b16711f2b656edd5e38787911fb2a6b5f979 (
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
|
# Maintainer: Ben Edwards <aur at artfuldodge dot io>
pkgname='restish'
pkgver='0.20.0'
pkgrel=1
pkgdesc='A CLI for interacting with REST-ish HTTP APIs'
arch=(x86_64)
url='https://github.com/danielgtaylor/restish'
license=(MIT)
makedepends=(go)
depends=(glibc)
source=("https://github.com/danielgtaylor/restish/archive/v${pkgver}.tar.gz")
sha256sums=('0aebd5eaf4b34870e40c8b94a0cc84ef65c32fde32eddae48e9529c73a31176d')
prepare() {
cd restish-$pkgver
go mod vendor
}
build() {
cd restish-$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 restish
}
package() {
cd restish-$pkgver
install -Dm755 restish "$pkgdir/usr/bin/restish"
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|