summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 348987599b91bbd153e8e3959724c9020ddc5ebf (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
# Maintainer: Christian Rebischke <chris.rebischke[at]archlinux[dot]org>

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: