summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3f6b49ed93f32ad5fcde1057d700f6d302709923 (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
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>

pkgname=bpfps-git
pkgver=0.1.5+1.gebc9b42
pkgrel=1
pkgdesc="Tool to list and diagnose bpf programs.  (Who watches the watchers..? :)"
arch=('i686' 'x86_64')
url="https://github.com/genuinetools/bpfps"
license=('MIT')
makedepends=('go')
conflicts=('bpfps-bin')

prepare() {
  export GOPATH="${srcdir}"
  go get github.com/genuinetools/bpfps
}

pkgver() {
  cd "${srcdir}/src/github.com/genuinetools/bpfps"
  git describe --long --tags --abbrev=7 | sed 's/^v//; s/-/+/; s/-/\./'
}

package() {
  install -Dm755 "${srcdir}/bin/bpfps" "${pkgdir}/usr/bin/bpfps"
}