void-packages/srcpkgs/python-ply/template
Alessio Sergi 217e7d31f2 srcpkgs: remove python3.4-* transitional dummy packages
After more than a year the switch to python3 packages, it is time to say
them goodbye. So long, and thanks for all the fish.
2017-12-20 11:29:51 +01:00

33 lines
788 B
Bash

# Template file for 'python-ply'
pkgname=python-ply
version=3.10
revision=2
noarch=yes
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=96e94af7dd7031d8d6dd6e2a8e0de593b511c211a86e28a9c9621c275ac8bacb
post_install() {
sed -n '/Copyright/,/POSSIBILITY/p' README.md >LICENSE
vlicense LICENSE
}
python3-ply_package() {
noarch=yes
depends="python3"
pycompile_module="ply"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}