Mail archive
alpine-aports

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

From: <oxr463_at_gmx.us>
Date: Fri, 17 May 2019 21:56:22 -0400

From: Lucas Ramage <ramage.lucas_at_protonmail.com>

---
 testing/cdist/APKBUILD | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)
diff --git a/testing/cdist/APKBUILD b/testing/cdist/APKBUILD
index 65c0a8d0f7..7407b3bb7d 100644
--- a/testing/cdist/APKBUILD
+++ b/testing/cdist/APKBUILD
_at_@ -1,20 +1,32 @@
 # Contributor: Lucas Ramage <ramage.lucas_at_protonmail.com>
 # Maintainer: Lucas Ramage <ramage.lucas_at_protonmail.com>
 pkgname=cdist
-pkgver=4.10.4
+pkgver=5.0.2
 pkgrel=0
 pkgdesc="A Usable Configuration Management System"
 arch="noarch"
-url="https://www.nico.schottelius.org/software/cdist/"
+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://code.ungleich.ch/ungleich-public/${pkgname}.git"
+makedepends="git make python3"
+builddir="${srcdir}/git"
+
+fetch() {
+    git clone "${giturl}" "${builddir}"
+    cd "${builddir}"
+    git checkout "tags/${pkgver}"
+}
+
+prepare() {
+    cd "${builddir}"
+    ./bin/build-helper 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.21.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri May 17 2019 - 21:56:22 UTC