diff options
author | Sébastien Leduc | 2015-08-02 21:08:37 +0200 |
---|---|---|
committer | Sébastien Leduc | 2015-08-02 21:08:37 +0200 |
commit | 10bb49186e901d59cb3f4b12d6b59da4f88699f9 (patch) | |
tree | e67229a37953e106bd9c185b7ec50d069f0d04d7 /PKGBUILD | |
download | aur-10bb49186e901d59cb3f4b12d6b59da4f88699f9.tar.gz |
Add split package for python{,2}-cov-core
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..38b54eaacfef --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# 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=1 +pkgdesc='plugin core for use by pytest-cov, nose-cov and nose2-cov' +arch=('any') +license=('MIT') +url='https://github.com/schlamar/cov-core' +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') + makedepends=("python-setuptools") + + cd "$srcdir/$_distname-$pkgver" + python setup.py install --root="$pkgdir"/ --optimize=1 +} + +package_python2-cov-core() { + depends=('python2' 'python2-coverage') + makedepends=("python2-setuptools") + + cd "$srcdir/$_distname-$pkgver-python2" + python2 setup.py install --root="$pkgdir"/ --optimize=1 +} +# vim:set ts=2 sw=2 et: |