summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD51
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..06c78814726
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = kapp-git
+ pkgdesc = kapp is a simple deployment tool focused on the concept of "Kubernetes application"
+ pkgver = r193.b0d6b82
+ pkgrel = 1
+ url = https://get-kapp.io/
+ arch = x86_64
+ license = Apache
+ makedepends = go-pie
+ makedepends = ytt>=0.17.0
+ provides = kapp
+ source = git+https://github.com/k14s/kapp/
+ sha256sums = SKIP
+
+pkgname = kapp-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..4213a5269e1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+/*.tar.xz
+/*.tar.gz
+/pkg
+/src
+/kapp
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3ae8e8652dd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Jean-Francois Chevrette <jfchevrette@gmail.com>
+
+_pkgname=kapp
+pkgname=${_pkgname}-git
+pkgver=r193.b0d6b82
+pkgrel=1
+pkgdesc='kapp is a simple deployment tool focused on the concept of "Kubernetes application"'
+url="https://get-kapp.io/"
+license=('Apache')
+arch=('x86_64')
+makedepends=('go-pie' 'ytt>=0.17.0')
+source=("git+https://github.com/k14s/${_pkgname}/")
+sha256sums=('SKIP')
+provides=("kapp")
+
+pkgver() {
+ cd "${srcdir}/src/github.com/k14s/${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ rm -rf "${srcdir}/src/github.com/k14s/${_pkgname}"
+ mkdir -p "${srcdir}/src/github.com/k14s/${_pkgname}"
+ mv -T "${srcdir}/${_pkgname}" "${srcdir}/src/github.com/k14s/${_pkgname}"
+}
+
+build() {
+ cd "${srcdir}/src/github.com/k14s/${_pkgname}"
+
+ export GOPATH="${srcdir}"
+
+ mkdir -p tmp
+ build_values_path="../../../${BUILD_VALUES:-./hack/build-values-default.yml}"
+ (
+ cd pkg/kapp/website
+ ytt template \
+ -f . \
+ -f $build_values_path \
+ --file-mark 'generated.go.txt:exclusive-for-output=true' \
+ --output-directory ../../../tmp/
+ )
+ mv tmp/generated.go.txt pkg/kapp/website/generated.go
+
+ go build -o kapp ./cmd/kapp/...
+}
+
+package() {
+ cd "${srcdir}/src/github.com/k14s/${_pkgname}"
+ install -Dm755 "${_pkgname}" "${pkgdir}"/usr/bin/${_pkgname}
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${_pkgname}/LICENSE
+}