void-packages/srcpkgs/python-webassets/template

37 lines
1.0 KiB
Bash

# Template file for 'python-webassets'
pkgname=python-webassets
version=0.12.0
revision=1
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
python_versions="2.7 3.4"
pycompile_module="webassets"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python-setuptools"
short_desc="Media asset management for Python2"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="2-clause-BSD"
homepage="https://github.com/miracle2k/webassets/"
distfiles="${PYPI_SITE}/w/webassets/webassets-${version}.tar.gz"
checksum=99d10b11f342cf2692ad3451f121c5302acee8144df32005c6f1305d541fa192
alternatives="webassets:webassets:/usr/bin/webassets2.7"
post_install() {
vlicense LICENSE
}
python3.4-webassets_package() {
noarch=yes
depends="python3.4-setuptools"
pycompile_version="3.4"
pycompile_module="webassets"
short_desc="${short_desc/Python2/Python3.4}"
alternatives="webassets:webassets:/usr/bin/webassets3.4"
pkg_install() {
vmove usr/bin/*3.4
vmove usr/lib/python3.4
vlicense LICENSE
}
}