python-constantly: split python3-constantly to a new package

This commit is contained in:
Michal Vasilek 2023-06-16 22:24:08 +02:00
parent 762bca1413
commit 7b1eb7282b
3 changed files with 19 additions and 14 deletions

View File

@ -2,27 +2,16 @@
pkgname=python-constantly
version=15.1.0
revision=7
build_style=python-module
pycompile_module="constantly"
build_style=python2-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Symbolic constants in Python (Python2)"
maintainer="Orphaned <orphan@voidlinux.org>"
homepage="https://github.com/twisted/constantly"
license="MIT"
homepage="https://github.com/twisted/constantly"
distfiles="${PYPI_SITE}/c/constantly/constantly-${version}.tar.gz"
checksum=586372eb92059873e29eba4f9dec8381541b4d3834660707faf8ba59146dfc35
post_install() {
vlicense LICENSE
}
python3-constantly_package() {
depends="python3"
pycompile_module="constantly"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}

View File

@ -1 +0,0 @@
python-constantly

View File

@ -0,0 +1,17 @@
# Template file for 'python3-constantly'
pkgname=python3-constantly
version=15.1.0
revision=7
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
short_desc="Symbolic constants in Python (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/twisted/constantly"
distfiles="${PYPI_SITE}/c/constantly/constantly-${version}.tar.gz"
checksum=586372eb92059873e29eba4f9dec8381541b4d3834660707faf8ba59146dfc35
post_install() {
vlicense LICENSE
}