39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
# Template file for 'python-cssselect'
|
|
pkgname=python-cssselect
|
|
version=1.0.0
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-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=582a85780249255707872c31d0438fc457aa24cfb43e472ff8f3e7ad6857953f
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-cssselect_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="cssselect"
|
|
replaces="python3.4-cssselect>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-cssselect_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-cssselect>=${version}_${revision}"
|
|
}
|