diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..aa4ad471f1aa --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Raphaƫl Doursenaud <rdoursenaud@gpcsolutions.fr> +pkgname=gandi.cli +pkgver=0.14 +pkgrel=1 +pkgdesc="Gandi command line interface" +arch=('any') +url="http://cli.gandi.net" +license=('GPL3') +groups=() +depends=('python3' 'python-yaml' 'python-click' 'python-requests' 'python-ipy' 'openssl' 'openssh' 'git') +optdepends=('docker: gandi docker support') +makdepends=('python-setuptools') +checkdepends=('python-nose' 'python-coverage' 'python-tox' 'python-mock') +makedepends=('python-docutils') +provides=() +conflicts=() +replaces=() +backup=() +options=(!emptydirs) +install= +source=("https://github.com/Gandi/$pkgname/archive/$pkgver.tar.gz") +sha256sums=('62bef7ae281350ebeeb2d741de55ed5cec6d4dda1e29c3d6c98a73445db27b56') + +build() { + # Building the manpage + cd "$srcdir/$pkgname-$pkgver" + rst2man --no-generator gandicli.man.rst > gandi.1 +} + +check() { + cd "$srcdir/$pkgname-$pkgver" + python setup.py test +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + 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: |