# Maintainer: Valery Kartel # Contributor: Valery Kartel pkgname=py-coverage _pkgname=coverage pkgver=4.1b2 pkgrel=0 pkgdesc="Code coverage measurement for Python" url="https://pypi.python.org/pypi/coverage" arch="all" license="apache2" depends= depends_dev= makedepends="python2-dev py-setuptools" install= subpackages="$pkgname-tools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$_pkgname-$pkgver build() { cd "$_builddir" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 } tools() { pkgdesc="$pkgdesc (command line tools)" depends="$pkgname" arch="noarch" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr } md5sums="e68db75497aed61bc6c28990dbb4d99d coverage-4.1b2.tar.gz" sha256sums="234f49523c94b0e588a9d2f0af55ec7a85a4c302e917f753eff2a444bc40d04d coverage-4.1b2.tar.gz" sha512sums="c74a2190553bb12a24ea3e06bc4a50cea3c555e81fb149219a029069925fcd4481ff02c1774c92b9341d15c18b51e8c28713a2e7b50e565c0a07a7a5f6804f7e coverage-4.1b2.tar.gz"