summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e22b56ec0c75786d412a11bf687ad4e44e9cd53b (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
# Maintainer: Sebastien LEDUC <sebastien@sleduc.fr>
# Contributor: Andrey Mikhaylenko <neithere at gmail dot com>

pkgname=('python-cov-core' 'python2-cov-core')
_distname=cov-core
pkgver=1.15.0
pkgrel=2
pkgdesc='plugin core for use by pytest-cov, nose-cov and nose2-cov'
arch=('any')
license=('MIT')
url='https://github.com/schlamar/cov-core'
makedepends=("python-setuptools" "python2-setuptools" "python" "python2")
source=("http://pypi.python.org/packages/source/c/$_distname/$_distname-$pkgver.tar.gz")
md5sums=('f519d4cb4c4e52856afb14af52919fe6')


prepare() {
  cp -a "${srcdir}/${_distname}-${pkgver}"{,-python2}
}

package_python-cov-core() {
  depends=('python' 'python-coverage')

  cd "$srcdir/$_distname-$pkgver"
  python setup.py install --root="$pkgdir"/ --optimize=1
}

package_python2-cov-core() {
  depends=('python2' 'python2-coverage')

  cd "$srcdir/$_distname-$pkgver-python2"
  python2 setup.py install --root="$pkgdir"/ --optimize=1
}
# vim:set ts=2 sw=2 et: