summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e5cbddcdeef268464e2f937ce0a2aa1deb0db550 (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
35
36
37
# Maintainer: Santiago Torres-Arias <santiago at archlinux dot org>

pkgname=draft
pkgver=0.16.0
_language='en-US'
pkgrel=1
pkgdesc="A tool for developers to create cloud-native applications on Kubernetes."
arch=('x86_64')
url="https://draft.sh"
license=('MIT')
depends=('glibc')
makedepends=('go' 'dep')

source_x86_64=("git+https://github.com/azure/draft?tag=v0.16.0")
# source+=()
sha512sums_x86_64=('SKIP')
#validpgpkeys=('')

build() {
    export GOPATH="${srcdir}/"
    mkdir -vp "src/github.com/Azure" && mv "${pkgname}" "src/github.com/Azure"

    cd "src/github.com/Azure/${pkgname}"

	go get -u github.com/alecthomas/gometalinter
    go get github.com/jteeuwen/go-bindata
    dep ensure -v

    go build ./cmd/...
}

package() {
    cd "src/github.com/Azure/${pkgname}"

    install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}