void-packages/srcpkgs/python-parse/template
2017-06-04 15:36:04 +02:00

39 lines
1 KiB
Bash

# Template file for 'python-parse'
pkgname=python-parse
version=1.8.2
revision=1
noarch=yes
wrksrc="parse-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
pycompile_module="parse.py"
short_desc="Parse strings using the format() syntax (Python2)"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="MIT"
homepage="https://github.com/r1chardj0n3s/parse"
distfiles="${PYPI_SITE}/p/parse/parse-${version}.tar.gz"
checksum=8048dde3f5ca07ad7ac7350460952d83b63eaacecdac1b37f45fd74870d849d2
post_install() {
sed -n '/Copyright/,/SOFTWARE\./p' parse.py >LICENSE
vlicense LICENSE
}
python3-parse_package() {
noarch=yes
depends="python3"
pycompile_module="parse.py"
replaces="python3.4-parse>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-parse_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-parse>=${version}_${revision}"
}