32 lines
842 B
Bash
32 lines
842 B
Bash
# Template file for 'python-construct'
|
|
pkgname=python-construct
|
|
version=2.9.45
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="construct-${version}"
|
|
build_style=python-module
|
|
pycompile_module="construct"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
short_desc="Powerful declarative symmetric parser/builder for binary data (Python2)"
|
|
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
|
|
license="MIT"
|
|
homepage="https://construct.readthedocs.org/"
|
|
distfiles="${PYPI_SITE}/c/construct/construct-${version}.tar.gz"
|
|
checksum=2271a0efd0798679dea825ff47e22a4c550456a5db0ba8baa82f7eae0af0118c
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-construct_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="construct"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|