Patches for aports can be sent to this list

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

Details
Message ID
<20190413025534.4993-1-oxr463@gmx.us>
Sender timestamp
1555124134
DKIM signature
missing
Download raw message
Patch: +17 -5
From: Lucas Ramage <ramage.lucas@protonmail.com>

---
 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 <ramage.lucas@protonmail.com>
 # Maintainer: Lucas Ramage <ramage.lucas@protonmail.com>
 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:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---