Skip to content

Instantly share code, notes, and snippets.

@Alveel Alveel/my.patch
Created May 29, 2019

Embed
What would you like to do?
Patch for AUR package kubernetes-helm to use the release tarball instead of raw git repo
diff --git a/.SRCINFO b/.SRCINFO
index 1de7c00..a23e1cc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -15,8 +15,8 @@ pkgbase = kubernetes-helm
optdepends = kubectl: check cluster status
optdepends = kubectl-bin: check cluster status - binary package
conflicts = kubernetes-helm-bin
- source = https://github.com/helm/helm/archive/v2.14.0.tar.gz
- sha256sums = 5ee68580431254044996da0d2347a394e917e18a81047cc1b0f3d8949a371d75
+ source = git+https://github.com/helm/helm#tag=v2.14.0
+ md5sums = SKIP
pkgname = kubernetes-helm
diff --git a/PKGBUILD b/PKGBUILD
index 5130a72..da6b34d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,12 +15,12 @@ optdepends=(
)
conflicts=('kubernetes-helm-bin')
license=('Apache')
-source=("${url}/archive/v${pkgver}.tar.gz")
-sha256sums=('5ee68580431254044996da0d2347a394e917e18a81047cc1b0f3d8949a371d75')
+source=("git+https://github.com/helm/helm#tag=v${pkgver}")
+md5sums=('SKIP')
prepare() {
mkdir -p "$srcdir/src/k8s.io"
- mv -T "$srcdir/helm-${pkgver}" "$srcdir/src/k8s.io/helm"
+ mv -T "$srcdir/helm" "$srcdir/src/k8s.io/helm"
}
build() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.