summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c49000aec5077b9198b0087a5eef1e04f6ac184b (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
# Maintainer: Olivier Biesmans <o.archlinux@biesmans.fr>

pkgname=bombardier
pkgver=0.2
pkgrel=1
pkgdesc="Crossplatform HTTP benchmarking tool written in Go"
arch=('x86_64' 'i686')
url="https://github.com/codesenberg/bombardier"
license=('MIT')
makedepends=('go')
options=('!strip' '!emptydirs')
source=("https://github.com/codesenberg/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('2ddec6bc421a8688ae388c57bf59183eacac71cb82ac2f3cfda58951cd11ae51')

build() {
  mkdir -p gopath/src
  mv "$pkgname-$pkgver" "gopath/src/$pkgname"
  GOPATH="$(pwd)/gopath" go build -o "$srcdir/build/$pkgname" "$pkgname"
  echo $(pwd)
}

package() {
  install -Dm755 "$srcdir/build/$pkgname" "$pkgdir/usr/bin/$pkgname"
  install -Dm644 "$srcdir/gopath/src/$pkgname/LICENSE" \
    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: