summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14bb60af3717a1c423e5c70a4b0f5f5f91dafd65 (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: Devon T. Bautista <devonb@lanl.gov>
_pkgname=ochami
pkgname="${_pkgname}-git"
pkgver=v0.0.7.r0.ca7625f
pkgrel=1
pkgdesc="Command line interface for OpenCHAMI services"
arch=('aarch64' 'x86_64')
url="https://github.com/OpenCHAMI/${_pkgname}"
license=('MIT')
groups=('openchami')
makedepends=('git' 'go' 'inetutils' 'make' 'scdoc')
optdepends=('bash-completion: for bash completion support'
            'jq: for pretty-printing JSON'
            'zsh-completions: for zsh completion support')
provides=("${_pkgname}")
conflicts=("${_pkgname}" "${_pkgname}-bin")
backup=("etc/${_pkgname}/config.yaml")
source=("git+${url}")
sha256sums=('SKIP')

pkgver() {
	cd "${_pkgname}"
	printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
	cd "${_pkgname}"
	make
}

package() {
	cd "${_pkgname}"
	make DESTDIR="$pkgdir/" prefix=/usr install
}