about summary refs log tree commit diff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-20T22·13+0000
committerVincent Ambo <tazjin@google.com>2019-12-20T22·13+0000
commit795a97466527a5f02e79e47b7fb316c78ffde667 (patch)
tree541912f41f01aa8ae5952030df6d3aeb7bd3baa3 /PKGBUILD
parent064f65dec295144dc8d440ebcf63f08eb154169d (diff)
chore(kontemplate): Prepare kontemplate for depot-merge
This merge will not yet include moving over to buildGo.nix, as support
for testing and such is not present in that library yet.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD38
1 files changed, 0 insertions, 38 deletions
diff --git a/PKGBUILD b/PKGBUILD
deleted file mode 100644
index 2c62fec4d636..000000000000
--- a/PKGBUILD
+++ /dev/null
@@ -1,38 +0,0 @@
-# Maintainer: Vincent Ambo <tazjin@gmail.com>
-pkgname=kontemplate-git
-pkgver=master_1e3ecad
-pkgrel=1
-pkgdesc="Simple Kubernetes resource templating"
-arch=('x86_64')
-url="https://github.com/tazjin/kontemplate"
-license=('GPLv3')
-makedepends=('go')
-optdepends=('pass: Template secrets into resources')
-source=('kontemplate-git::git+https://github.com/tazjin/kontemplate.git')
-md5sums=('SKIP')
-
-pkgver() {
-  cd "$srcdir/$pkgname"
-  echo -n "master_$(git rev-parse --short HEAD)"
-}
-
-prepare() {
-  cd "$srcdir/$pkgname"
-  echo "Fetching Go dependencies..."
-  go get -v ./...
-}
-
-build() {
-  cd "$srcdir/$pkgname"
-  local GIT_HASH="$(git rev-parse --short HEAD)"
-
-  go build -tags netgo \
-     -ldflags "-X main.gitHash=${GIT_HASH} -w -s" \
-     -o 'kontemplate'
-}
-
-package() {
-  cd "$srcdir/$pkgname"
-
-  install -D -m 0755 'kontemplate' "${pkgdir}/usr/bin/kontemplate"
-}