summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5de16f31299b27b7b1d3d75ed8caaf4da9817a4d (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: Anthony25 <Anthony Ruhier>
#
# Thanks to Jeremy "Ichimonji10" Audet <ichimonji10 at gmail dot com> for
# his PKGBUILD that served as a base for this one

pkgbase=python-ncclient
_pkgbase="${pkgbase#python-}"
pkgname=(python-ncclient python2-ncclient)
pkgver=0.6.6
pkgrel=1
pkgdesc='Python library for NETCONF clients.'
arch=(any)
url='http://ncclient.org/'
license=(Apache-2.0)
makedepends=(
  'python-paramiko'
  'python-lxml'
  'python-selectors2'
  python-setuptools
  'python2-paramiko'
  'python2-lxml'
  'python2-selectors2'
  python2-setuptools
)
options=(!emptydirs)
source=("https://github.com/ncclient/${_pkgbase}/archive/v${pkgver}.tar.gz")
sha256sums=('d2392c25df3a6c41cea0c51316607b61ce2fb1d5a00d798631ce0bd63cce8649')

package_python-ncclient() {
  depends=('python-paramiko'
           'python-lxml'
           'python-selectors2'
           'python-six')
  cd "${srcdir}/${_pkgbase}-${pkgver}"
  python setup.py install --root="${pkgdir}/" --optimize=1
  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

package_python2-ncclient() {
  depends=('python2-paramiko'
           'python2-lxml'
           'python2-selectors2'
           'python2-six')
  cd "${srcdir}/${_pkgbase}-${pkgver}"
  python2 setup.py install --root="${pkgdir}/" --optimize=1
  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et: