python-pyscss: update alternatives

This commit is contained in:
Alessio Sergi 2016-06-09 23:16:38 +02:00
parent f39013a469
commit 81b36900e8

View file

@ -1,7 +1,7 @@
# Template file for 'python-pyscss'
pkgname=python-pyscss
version=1.3.5
revision=1
revision=2
wrksrc="pyScss-${version}"
build_style=python-module
python_versions="2.7 3.4"
@ -10,25 +10,30 @@ makedepends="pcre-devel python-devel python3.4-devel"
depends="python-setuptools python-six python-enum34 python-pathlib"
pycompile_module="scss"
short_desc="Scss compiler for Python2"
maintainer="Steven R <dev@styez.com>"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://github.com/Kronuz/pyScss"
license="MIT"
distfiles="${PYPI_SITE}/p/pyScss/pyScss-${version}.tar.gz"
checksum=14a25c33c221a66bb1f000a6a067f376528d3df2f9333cee9c95709a9280cdb0
alternatives="pyscss:pyscss:/usr/bin/pyscss2.7"
alternatives="
pyscss:pyscss:/usr/bin/pyscss2.7
pyscss:less2scss:/usr/bin/less2scss2.7"
post_install() {
vlicense LICENSE
}
python3.4-pyscss_package() {
depends="python-setuptools python3.4-six"
alternatives="
pyscss:pyscss:/usr/bin/pyscss3.4
pyscss:less2scss:/usr/bin/less2scss3.4"
pycompile_version="3.4"
pycompile_module="scss"
depends="python-setuptools python3.4-six"
short_desc="${short_desc/Python2/Python3.4}"
alternatives="pyscss:pyscss:/usr/bin/pyscss3.4"
pkg_install() {
vmove usr/bin/pyscss3.4
vmove usr/bin/*3.4
vmove usr/lib/python3.4
vlicense LICENSE
}