blob: f96de2294d848b3dd926dcdf2a232834f5ce7c05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Joachim Desroches <joachim.desroches@epfl.ch>
pkgname=cdist
pkgver=7.0.0
pkgrel=2
pkgdesc='A usable configuration management system'
arch=('any')
url='https://code.ungleich.ch/ungleich-public/cdist/'
license=('GPL3')
depends=('python' 'openssh')
makedepends=('python-setuptools' 'python-six' 'python-sphinx' 'python-sphinx_rtd_theme')
source=("https://code.ungleich.ch/ungleich-public/cdist/archive/${pkgver}.tar.gz")
sha256sums=('951f37b01a57e0b630987d68827ceb2eeb44e29251028406b1c37c8dc05beb9f')
prepare() {
echo "VERSION = \"${pkgver}\"" > ${pkgname}/cdist/version.py
}
build() {
cd ${pkgname}/
python setup.py build
make man
}
package() {
cd ${pkgname}/
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
}
|