Subject: [alpine-aports] [PATCH] testing/cdist: upgrade to version 4.10.10

From: [email-masked]
Date: Fri, 12 Apr 2019 22:55:34 -0400

From: Lucas Ramage <[email-masked]>

---
 testing/cdist/APKBUILD | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

diff --git a/testing/cdist/APKBUILD b/testing/cdist/APKBUILD
index 65c0a8d0f7..78007e9ce3 100644
--- a/testing/cdist/APKBUILD
+++ b/testing/cdist/APKBUILD
@@ -1,7 +1,7 @@
 # Contributor: Lucas Ramage <[email-masked]>
 # Maintainer: Lucas Ramage <[email-masked]>
 pkgname=cdist
-pkgver=4.10.4
+pkgver=4.10.10
 pkgrel=0
 pkgdesc="A Usable Configuration Management System"
 arch="noarch"
@@ -9,12 +9,24 @@ url="https://www.nico.schottelius.org/software/cdist/"
 options="!check"
 license="GPL-3.0"
 depends="python3"
-source="https://github.com/ungleich/${pkgname}/releases/download/4.10.4/${pkgname}-${pkgver}.tar.gz"
+giturl="https://github.com/ungleich/${pkgname}.git"
+makedepends="git make python3"
+builddir="${srcdir}/git"
+
+fetch() {
+    git clone "${giturl}" "${builddir}"
+    cd "${builddir}"
+    git checkout "tags/${pkgver}"
+}
+
+prepare() {
+    cd "${builddir}"
+    make version
+}

 package() {
-    ./bin/${pkgname} 2> /dev/null
-    python3 setup.py build install --root="${pkgdir}"
+    export PATH="${PATH}:$(pwd -P)/bin"
+    python3 setup.py install --root="${pkgdir}"
     find "$pkgdir" -type d -exec chmod 0755 {} \;
     find "$pkgdir" -type f -exec chmod a+r {} \;
 }
-sha512sums="19b6bd824352d77f331a2bb1bec83066fb328550249068c8037e47e9e51aba743d96119cffd5fcdefb99d1f69444fb7c608a563dfcbccfc3f2e2700fee103636  cdist-4.10.4.tar.gz"
--
2.19.2

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---