void-packages/srcpkgs/python-regex/template

34 lines
815 B
Bash

# Template file for 'python-regex'
pkgname=python-regex
version=2020.2.20
revision=1
wrksrc="regex-${version}"
build_style=python-module
hostmakedepends="python-devel python3-devel python-setuptools python3-setuptools"
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=9e9624440d754733eddbcd4614378c18713d2d9d0dc647cf9c72f64e39671be5
post_install() {
local i
for i in docs/*.* ; do
vdoc $i
done
}
python3-regex_package() {
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
local i
for i in docs/*.* ; do
vdoc $i
done
}
}