8ddd61d984
[ci skip]
32 lines
792 B
Bash
32 lines
792 B
Bash
# Template file for 'python-ply'
|
|
pkgname=python-ply
|
|
version=3.11
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="ply-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
pycompile_module="ply"
|
|
short_desc="Lex and Yacc for Python2"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="http://www.dabeaz.com/ply/"
|
|
license="3-clause-BSD"
|
|
distfiles="${PYPI_SITE}/p/ply/ply-${version}.tar.gz"
|
|
checksum=00c7c1aaa88358b9c765b6d3000c6eec0ba42abca5351b095321aef446081da3
|
|
|
|
post_install() {
|
|
sed -n '/Copyright/,/POSSIBILITY/p' README.md >LICENSE
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-ply_package() {
|
|
archs=noarch
|
|
depends="python3"
|
|
pycompile_module="ply"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|