void-packages/srcpkgs/python-cssselect/template
2016-06-16 23:19:02 +02:00

34 lines
861 B
Bash

# Template file for 'python-cssselect'
pkgname=python-cssselect
version=0.9.2
revision=1
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python"
pycompile_module="cssselect"
short_desc="CSS selectors for Python2"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://pythonhosted.org/cssselect/"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/c/${pkgname#*-}/${pkgname#*-}-${version}.tar.gz"
checksum=713b5b99ef08022257b3409c7ae1b18b2c6536b3f155e6237c5cfba0f67ae6f5
post_install() {
vlicense LICENSE
}
python3.4-cssselect_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="cssselect"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
vlicense LICENSE
}
}