summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 20 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 42fe2a470b2..ff0678e841f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,19 @@
-# Maintainer: Christian Hesse <mail@eworm.de>
+# Maintainer: Joachim Desroches <joachim.desroches@epfl.ch>
pkgname=cdist
-pkgver=4.11.1
+pkgver=6.7.0
pkgrel=1
pkgdesc='A usable configuration management system'
arch=('any')
-url='https://github.com/ungleich/cdist'
+url='https://code.ungleich.ch/ungleich-public/cdist/'
license=('GPL3')
depends=('python' 'openssh')
-makedepends=('python-setuptools')
-validpgpkeys=('69767822F3ECC3C349C1EFFFEFD2AE4EC36B6901') # ungleich GmbH (ungleich FOSS) <foss@ungleich.ch>')
-source=("https://github.com/ungleich/cdist/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.asc})
-sha256sums=('cc35bd05bf4feed44f9ac33b1a868a27029abfd05018cee2f053f54c318186a6'
- 'SKIP')
+makedepends=('python-setuptools' 'python-sphinx' 'python-sphinx_rtd_theme')
+validpgpkeys=('69767822F3ECC3C349C1EFFFEFD2AE4EC36B6901') # ungleich GmbH (ungleich FOSS) <foss@ungleich.ch>'
+source=("https://code.ungleich.ch/ungleich-public/cdist/uploads/03886c989425b38d2458f6c8fcc6fcbd/cdist-6.7.0.tar.gz"
+ "https://code.ungleich.ch/ungleich-public/cdist/uploads/e0c0566c4a4981d86a9c5daf609da0ea/cdist-6.7.0.tar.gz.asc")
+md5sums=('abb7bd2ce6e37564075d2672f7b128ae'
+ 'SKIP')
prepare() {
echo "VERSION = \"${pkgver}\"" > ${pkgname}-${pkgver}/cdist/version.py
@@ -22,11 +23,21 @@ build() {
cd ${pkgname}-${pkgver}/
python setup.py build
+ make man
}
package() {
cd ${pkgname}-${pkgver}/
python setup.py install --root="${pkgdir}"
-}
+ # Install documentation
+ mkdir -p ${pkgdir}/usr/share/man/man1 ${pkgdir}/usr/share/man/man7
+ cp docs/dist/man/man1/*.1 ${pkgdir}/usr/share/man/man1/
+ cp docs/dist/man/man7/*.7 ${pkgdir}/usr/share/man/man7/
+
+ # Restore executable bit on scripts removed by setup.py
+ cd "${pkgdir}"
+ grep -l -R -m 1 "^#!\/" . | xargs chmod +x
+
+}