summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 882d3df26e63d2ad020e4e67714acd46500432e1 (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: kpcyrd <git@rxv.cc>

_gitname=gitoops
pkgname=gitoops-git
pkgver=0.0.0.r33
pkgrel=2
pkgdesc="Identify lateral movement and privilege escalation paths in CI/CD environments"
url="https://github.com/ovotech/gitoops"
makedepends=('go')
provides=('gitoops')
conflicts=('gitoops')
arch=('i686' 'x86_64' 'armv6h' 'aarch64')
license=('MIT')
source=("git+https://github.com/ovotech/${_gitname}.git")
sha512sums=('SKIP')

pkgver() {
  cd "${_gitname}"
  echo 0.0.0.r$(git rev-list HEAD --count)
}

build() {
  cd "${_gitname}"
  go build -o gitoops ./cmd/
}

package() {
  cd "${_gitname}"
  install -Dm755 gitoops -t "${pkgdir}/usr/bin"
  install -Dm644 README.md docs/* \
    -t "${pkgdir}/usr/share/doc/${pkgname}"
}

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