summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 98c3356d7fb8898d6a663fd044bc9b04d01ebd4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: erdii <me at erdii dot engineering>
pkgname=osdctl
pkgver=0.30.0
pkgrel=2
pkgdesc="CLI for the OSD utilities"
arch=("any")
conflicts=()
url="https://github.com/openshift/osdctl"
license=("Apache")
depends=()
makedepends=("go" "goreleaser")
source=("osdctl-${pkgver}::git+https://github.com/openshift/osdctl#tag=v${pkgver}")
sha256sums=('21f15397c1a98cb2e8b3b543317ddc43973df6c9826bf12914f2678bf5e3e51b')

build() {
  cd "${srcdir}/osdctl-${pkgver}"
  # use goreleaser instead of `make build` to have proper version info in the binary
  goreleaser build --clean --single-target -o .
}

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