summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4100f20f3f0fd458a020eda95dab46c90e963ca8 (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
# Maintainer: Harm Endres <harm.mueller@gmail.com>

pkgname=waitron
pkgver=0.0.1
pkgrel=2
pkgdesc="Waitron will deliver a kernel/initrd/commandline set to be used by pixiecore."
arch=('x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/jhaals/waitron"
license=('Apache')
makedepends=('go' 'git')

prepare() {
	export GOPATH="$srcdir/go"
	mkdir -p $GOPATH

	export GOBIN="$GOPATH/bin"
	mkdir -p $GOBIN

	go env
}

build() {
	go get -v github.com/jhaals/waitron
}

package() {
	install -Dm755 "$GOBIN/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}