summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d273c4cf61a29cf4d73cff993a180392b86ea729 (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
# Maintainer: drpebcak <tayworm@gmail.com>
pkgname='acorn-cli-git'
pkgver=git
pkgrel=1
pkgdesc="A simple application deployment framework for Kubernetes (git build from latest commit)"
arch=('x86_64')
url="https://www.acorn.io"
license=('Apache')
makedepends=('git' 'go')
source=('acorn::git+https://github.com/acorn-io/runtime.git#branch=main')
noextract=()
md5sums=('SKIP')

build() {
	cd "acorn"
	export CGO_ENABLED=0 
	go build -o bin/acorn -ldflags "-s -w -X 'github.com/acorn-io/runtime/pkg/version.Tag=$pkgver'"
}

check() {
	cd "acorn"
	./bin/acorn version
}

package() {
	cd "acorn"
	install -Dm755 bin/acorn "$pkgdir"/usr/bin/acorn
}