void-packages/srcpkgs/python-parsing/template
2018-12-30 17:17:30 +01:00

37 lines
953 B
Bash

# Template file for 'python-parsing'
pkgname=python-parsing
version=2.3.0
revision=1
noarch=yes
wrksrc="pyparsing-pyparsing_${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
pycompile_module="pyparsing.py"
short_desc="Python parsing module (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://github.com/pyparsing/pyparsing"
changelog="https://github.com/pyparsing/pyparsing/raw/master/CHANGES"
distfiles="https://github.com/pyparsing/pyparsing/archive/pyparsing_${version}.tar.gz"
checksum=1c43865daf37c14b183c8c46be537a31797973ec4db79a8b9f83dd1a4adf23cc
do_check() {
python2 unitTests.py
python3 unitTests.py
}
post_install() {
vlicense LICENSE
}
python3-parsing_package() {
noarch=yes
depends="python3"
pycompile_module="pyparsing.py"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}