summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a2ac337c5a62da59dc8af94a653745dc44ed492b (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
# Maintainer: Per Osbeck <per@osbeck.com>
pkgname=perfops-cli
pkgver=0.7.10
pkgrel=1
pkgdesc="A simple command line tool to interact with hundreds of servers around the world. Run benchmarks and debug your infrastructure without leaving your console."
arch=(x86_64)
url="https://perfops.net"
license=('APACHE')
makedepends=('git' 'go')
source=("$pkgname::git+https://github.com/ProspectOne/$pkgname.git#tag=v$pkgver")
md5sums=(SKIP)

build() {
	cd "$pkgname"
	GOPATH="$srcdir" PERFOPS_BUILD_PLATFORMS=linux bash hack/build-all.sh
}

prepare() { 
	mkdir -p "src/github.com/ProspectOne"
	ln -sf "$srcdir/$pkgname" "src/github.com/ProspectOne/$pkgname"
}

package() {
	cd "$pkgname"
	install -Dm755 "release/perfops-linux-amd64" "$pkgdir/usr/bin/perfops-cli"
}