diff options
author | Dasith Gunawardhana | 2020-10-15 10:46:43 -0700 |
---|---|---|
committer | Dasith Gunawardhana | 2020-10-15 10:46:43 -0700 |
commit | 9e6778683d37d16a9dbaffbc7000b35d4676edfc (patch) | |
tree | fb6a383356f665913b5adf318690c9946181aacd | |
download | aur-waypoint-git.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cb40834fbd47 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = waypoint-git + pkgdesc = Waypoint allows developers to define their application build, deploy, and release lifecycle as code, reducing the time to deliver deployments through a consistent and repeatable workflow. + pkgver = 42efa540 + pkgrel = 1 + url = https://www.waypointproject.io + arch = x86_64 + license = MPL2 + makedepends = go + makedepends = git + makedepends = go-bindata + depends = glibc + provides = waypoint + conflicts = waypoint + source = git+https://github.com/hashicorp/waypoint.git + sha256sums = SKIP + +pkgname = waypoint-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..740b3a0b4437 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Dasith Gunawardhana <dasith@dg10a.com> + +_pkgname=waypoint +pkgname=${_pkgname}-git +pkgver=42efa540 +pkgrel=1 +pkgdesc="Waypoint allows developers to define their application build, deploy, and release lifecycle as code, reducing the time to deliver deployments through a consistent and repeatable workflow." +arch=('x86_64') +url="https://www.waypointproject.io" +license=('MPL2') +depends=('glibc') +makedepends=('go' 'git' 'go-bindata') +conflicts=("${_pkgname}") +provides=("${_pkgname}") +source=("git+https://github.com/hashicorp/waypoint.git") +sha256sums=('SKIP') + +pkgver() { + cd ${_pkgname} + git describe --always | sed 's/[- ]/_/g' +} + +prepare() { + mkdir -p gopath/src/github.com/hashicorp + mkdir -p gopath/bin + + ln -rTsf ${_pkgname} gopath/src/github.com/hashicorp/${_pkgname} + export GOPATH="$srcdir"/gopath + export PATH="$PATH:$GOPATH/bin" +} + +build() { + export GOFLAGS="-gcflags=all=-trimpath=${PWD} -asmflags=all=-trimpath=${PWD} -ldflags=-extldflags=-zrelro -ldflags=-extldflags=-znow" + + cd gopath/src/github.com/hashicorp/${_pkgname} + make bin + + unset GOFLAGS +} + +package() { + cd gopath/src/github.com/hashicorp/${_pkgname} + install -Dm755 waypoint "$pkgdir"/usr/bin/waypoint + install -m644 -D LICENSE "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE" +} |