void-packages/srcpkgs/python-regex/template

36 lines
894 B
Bash

# Template file for 'python-regex'
pkgname=python-regex
version=2019.08.19
revision=1
wrksrc="regex-${version}"
build_style=python-module
pycompile_module="_regex_core.py regex.py test_regex.py"
hostmakedepends="python-devel python3-devel"
makedepends="python-devel python3-devel"
short_desc="Alternative regular expression module (Python2)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Python-2.0"
homepage="https://pypi.org/project/regex/"
distfiles="${PYPI_SITE}/r/regex/regex-${version}.tar.gz"
checksum=587b62d48ca359d2d4f02d486f1f0aa9a20fbaf23a9d4198c4bed72ab2f6c849
post_install() {
local i
for i in docs/*.* ; do
vdoc $i
done
}
python3-regex_package() {
depends="python3"
pycompile_module="_regex_core.py regex.py test_regex.py"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
local i
for i in docs/*.* ; do
vdoc $i
done
}
}