38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'python-pyasn1-modules'
|
|
pkgname=python-pyasn1-modules
|
|
version=0.0.11
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python-module
|
|
pycompile_module="pyasn1_modules"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-pyasn1>=0.3.2"
|
|
short_desc="Collection of ASN.1-based protocols modules (Python2)"
|
|
maintainer="Peter Bui <pnutzh4x0r@gmail.com>"
|
|
license="2-clause-BSD"
|
|
homepage="https://github.com/etingof/pyasn1-modules"
|
|
distfiles="${PYPI_SITE}/p/pyasn1-modules/pyasn1-modules-${version}.tar.gz"
|
|
checksum=60d5c80bfee9b79b492d5d8a934b3ecfc523f2f83aaab4ffafa2bbb651d3c67a
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
|
|
python3-pyasn1-modules_package() {
|
|
noarch=yes
|
|
depends="python3-pyasn1"
|
|
pycompile_module="pyasn1_modules"
|
|
replaces="python3.4-pyasn1-modules>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|
|
python3.4-pyasn1-modules_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-pyasn1-modules>=${version}_${revision}"
|
|
}
|