testing/py-cssselect: added install_if to pull the right python version

This commit is contained in:
Francesco Colista 2016-07-27 14:47:20 +00:00
parent d1dba03150
commit a6a1fd9a75

View File

@ -3,7 +3,7 @@
pkgname=py-cssselect
_pkgname=cssselect
pkgver=0.9.2
pkgrel=0
pkgrel=1
pkgdesc="A Python library that parses CSS3 Selectors and translates them to XPath 1.0"
url="http://pypi.python.org/pypi/cssselect"
arch="noarch"
@ -29,7 +29,7 @@ package() {
_py() {
local python=$1
pkgdesc="$pkgdesc - $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}