43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Template file for 'python-cssutils'
|
|
pkgname=python-cssutils
|
|
version=1.0.2
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="cssutils-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools"
|
|
pycompile_module="cssutils encutils"
|
|
short_desc="A CSS Cascading Style Sheets library for Python2"
|
|
maintainer="Farhad Shahbazi <grauwolf@geekosphere.org>"
|
|
license="LGPL-3"
|
|
homepage="http://pypi.python.org/pypi/cssutils"
|
|
distfiles="${PYPI_SITE}/c/cssutils/cssutils-${version}.tar.gz"
|
|
checksum=a2fcf06467553038e98fea9cfe36af2bf14063eb147a70958cfcaa8f5786acaf
|
|
|
|
alternatives="
|
|
cssutils:csscapture:/usr/bin/csscapture2
|
|
cssutils:csscombine:/usr/bin/csscombine2
|
|
cssutils:cssparse:/usr/bin/cssparse2"
|
|
|
|
python3-cssutils_package() {
|
|
alternatives="
|
|
cssutils:csscapture:/usr/bin/csscapture3
|
|
cssutils:csscombine:/usr/bin/csscombine3
|
|
cssutils:cssparse:/usr/bin/cssparse3"
|
|
noarch=yes
|
|
pycompile_module="cssutils encutils"
|
|
replaces="python3.4-cssutils>=0"
|
|
depends="python3-setuptools"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|
|
python3.4-cssutils_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-cssutils>=${version}_${revision}"
|
|
}
|