void-packages/srcpkgs/python-simplegeneric/template
2017-08-28 03:10:18 +02:00

33 lines
1,023 B
Bash

# Template file for 'python-simplegeneric'
pkgname=python-simplegeneric
version=0.8.1
revision=3
noarch=yes
wrksrc="simplegeneric-${version}"
build_style=python-module
hostmakedepends="unzip python-setuptools python3-setuptools"
depends="python"
pycompile_module="simplegeneric.py"
short_desc="Simple generic functions for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://pypi.python.org/pypi/simplegeneric"
license="ZPL"
distfiles="${PYPI_SITE}/s/simplegeneric/simplegeneric-${version}.zip"
checksum=dc972e06094b9af5b855b3df4a646395e43d1c9d0d39ed345b7393560d0b9173
python3-simplegeneric_package() {
noarch=yes
depends="python3"
pycompile_module="simplegeneric.py"
replaces="python3.4-simplegeneric>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}
python3.4-simplegeneric_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-simplegeneric>=${version}_${revision}"
}