diff options
author | Alexander Bruegmann | 2019-10-29 13:19:11 +0100 |
---|---|---|
committer | Alexander Bruegmann | 2019-10-29 13:19:11 +0100 |
commit | dc1204c9b184d35290c5734b52f1fd37b4b82fcd (patch) | |
tree | 8cad5b7fe293160a66555bd1c4230cab3ae4b22b | |
parent | 45b99b547ec8c077c6e02ccb676d93ff55c81294 (diff) | |
download | aur-dc1204c9b184d35290c5734b52f1fd37b4b82fcd.tar.gz |
update to v1.9.1
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 21 insertions, 11 deletions
@@ -1,16 +1,14 @@ pkgbase = python-tenableio pkgdesc = Python library to easily integrate with the tenable.io API - pkgver = 1.9.0 + pkgver = 1.9.1 pkgrel = 1 url = https://github.com/tenable/Tenable.io-SDK-for-Python/ arch = any license = MIT - makedepends = python - makedepends = python2 makedepends = python-setuptools makedepends = python2-setuptools - source = Tenable.io-SDK-for-Python-1.9.0.tar.gz::https://github.com/tenable/Tenable.io-SDK-for-Python/archive/v1.9.0.tar.gz - sha512sums = 3d5480f50af2f2a30cbf674dfd0392059b32135e3d243ee4e64b7c93c8662df50ff6d14910c906409c12c09cef67ebbfc3b8bd62b4dedb71a64a96ca7cde1b20 + source = Tenable.io-SDK-for-Python-1.9.1.tar.gz::https://github.com/tenable/Tenable.io-SDK-for-Python/archive/v1.9.1.tar.gz + sha512sums = 2286d87baa2e1e8111f1e5939c080ee5d58a3614e79984ae98aff68e57606e0c456d98c96c0556faced535b501ee400d21b8b1edd11ec8d499357e8052d7d83f pkgname = python-tenableio depends = python @@ -2,26 +2,38 @@ pkgbase=python-tenableio _pyname=Tenable.io-SDK-for-Python pkgname=('python-tenableio' 'python2-tenableio') -makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools') -pkgver=1.9.0 +makedepends=('python-setuptools' 'python2-setuptools') +pkgver=1.9.1 pkgrel=1 pkgdesc="Python library to easily integrate with the tenable.io API" arch=('any') url="https://github.com/tenable/Tenable.io-SDK-for-Python/" license=('MIT') source=("${_pyname}-${pkgver}.tar.gz::https://github.com/tenable/Tenable.io-SDK-for-Python/archive/v${pkgver}.tar.gz") -sha512sums=('3d5480f50af2f2a30cbf674dfd0392059b32135e3d243ee4e64b7c93c8662df50ff6d14910c906409c12c09cef67ebbfc3b8bd62b4dedb71a64a96ca7cde1b20') +sha512sums=('2286d87baa2e1e8111f1e5939c080ee5d58a3614e79984ae98aff68e57606e0c456d98c96c0556faced535b501ee400d21b8b1edd11ec8d499357e8052d7d83f') + +prepare() { + cp -a ${_pyname}-${pkgver}{,-py2} +} + +build() { + cd "${srcdir}/${_pyname}-${pkgver}" + python setup.py build + + cd "${srcdir}/${_pyname}-${pkgver}-py2" + python2 setup.py build +} package_python-tenableio() { depends=('python' 'python-requests' 'python-six') cd "${srcdir}/${_pyname}-${pkgver}" - python setup.py install -O1 --root="${pkgdir}" + python setup.py install -O1 --root="${pkgdir}" --skip-build install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_python2-tenableio() { depends=('python2' 'python2-requests' 'python2-six') - cd "${srcdir}/${_pyname}-${pkgver}" - python2 setup.py install -O1 --root="${pkgdir}" + cd "${srcdir}/${_pyname}-${pkgver}-py2" + python2 setup.py install -O1 --root="${pkgdir}" --skip-build install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |