42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'python-webassets'
|
|
pkgname=python-webassets
|
|
version=0.12.1
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python-module
|
|
pycompile_module="webassets"
|
|
hostmakedepends="python-setuptools python3-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=e7d9c8887343123fd5b32309b33167428cb1318cdda97ece12d0907fd69d38db
|
|
alternatives="webassets:webassets:/usr/bin/webassets2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-webassets_package() {
|
|
noarch=yes
|
|
depends="python3-setuptools"
|
|
replaces="python3.4-webassets>=0"
|
|
pycompile_module="webassets"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="webassets:webassets:/usr/bin/webassets3"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-webassets_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-webassets>=${version}_${revision}"
|
|
}
|