blob: a355a00c540052f14a34a247231885624b255b68 (
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
41
42
43
44
45
46
47
48
49
|
# Maintainer: Raphaƫl Doursenaud <rdoursenaud@gpcsolutions.fr>
_pkgname=gandi.cli
pkgname=${_pkgname}-git
pkgver=1.0.r0.g2d0903c
pkgrel=1
pkgdesc="Gandi command line interface"
arch=('any')
url="http://cli.gandi.net"
license=('GPL3')
groups=()
depends=('python' 'python-yaml' 'python-click>=3.1' 'python-requests' 'python-ipy' 'openssl' 'openssh' 'git')
optdepends=('docker: gandi docker support')
makedepends=('git' 'python-setuptools')
checkdepends=('python-nose' 'python-coverage' 'python-tox' 'python-mock' 'python-httpretty')
makedepends=('python-docutils')
provides=("${pkgname%-git}=$pkgver-$pkgrel")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=(!emptydirs)
install=
source=("git+https://github.com/Gandi/${_pkgname}")
sha256sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
# Building the manpage
cd "${srcdir}/${_pkgname}"
rst2man --no-generator gandicli.man.rst > gandi.1
}
check() {
cd "${srcdir}/${_pkgname}"
python setup.py test
}
package() {
cd "${srcdir}/${_pkgname}"
python setup.py install --root="${pkgdir}/" --optimize=1
# Installing the manpage
install -d "${pkgdir}/usr/share/man/man1/"
install -m 644 *.1 "${pkgdir}/usr/share/man/man1/"
}
# vim:set ts=2 sw=2 et:
|