31 lines
905 B
Bash
31 lines
905 B
Bash
# Template file for 'python-pyasn1-modules'
|
|
pkgname=python-pyasn1-modules
|
|
version=0.2.2
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python-module
|
|
pycompile_module="pyasn1_modules"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-pyasn1"
|
|
short_desc="Collection of ASN.1-based protocols modules (Python2)"
|
|
maintainer="Peter Bui <pbui@github.bx612.space>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://github.com/etingof/pyasn1-modules"
|
|
distfiles="${PYPI_SITE}/p/pyasn1-modules/pyasn1-modules-${version}.tar.gz"
|
|
checksum=a0cf3e1842e7c60fde97cb22d275eb6f9524f5c5250489e292529de841417547
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
|
|
python3-pyasn1-modules_package() {
|
|
noarch=yes
|
|
depends="python3-pyasn1"
|
|
pycompile_module="pyasn1_modules"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|