# Maintainer: Christian Rebischke pkgbase=python-virustotal-api _pyname=virustotal-api pkgname=('python-virustotal-api' 'python2-virustotal-api') pkgver=1.1.10 pkgrel=1 pkgdesc="Virus Total Public/Private/Intel API" arch=('any') url="https://github.com/blacktop/virustotal-api/" license=('MIT') makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools' 'python-future' 'python2-future') source=("${_pyname}-${pkgver}.tar.gz::https://pypi.python.org/packages/source/v/${_pyname}/${_pyname}-${pkgver}.tar.gz") sha512sums=('724b1defc46677795d80b49c9cfead8a9cf9d6dff27ca076ada60cb3f2be2718ffec975f0cf4cd088098c22dcfcd03356deb78a13189744f3c618fd5687e4f19') prepare() { cd "${srcdir}" cp -r virustotal-api-"${pkgver}" virustotal-api2-"${pkgver}" } # currently disabled because of missing files #check() { # cd "${srcdir}/virustotal-api-${pkgver}" # python setup.py test # # cd "${srcdir}/virustotal-api2-${pkgver}" # python2 setup.py test #} package_python-virustotal-api() { depends=('python' 'python-future' 'python-requests') cd "${srcdir}/virustotal-api-${pkgver}" python setup.py install --root "${pkgdir}" --optimize=1 } package_python2-virustotal-api() { depends=('python2' 'python2-future' 'python2-requests') cd "${srcdir}/virustotal-api2-${pkgver}" python2 setup.py install --root "${pkgdir}" --optimize=1 } # vim:set et sw=2 ts=2 tw=79: