35 lines
939 B
Bash
35 lines
939 B
Bash
# Template file for 'python-pyasn1-modules'
|
|
pkgname=python-pyasn1-modules
|
|
version=0.2.8
|
|
revision=6
|
|
build_style=python-module
|
|
pycompile_module="pyasn1_modules"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-pyasn1"
|
|
checkdepends="python-pyasn1 python3-pyasn1"
|
|
short_desc="Collection of ASN.1-based protocols modules (Python2)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://github.com/etingof/pyasn1-modules"
|
|
distfiles="https://github.com/etingof/pyasn1-modules/archive/v${version}.tar.gz"
|
|
checksum=c562fcf94e21b19b1b01c103a4dbe24b286356237d2b453afd75882683cf0ad7
|
|
|
|
do_check() {
|
|
python setup.py test
|
|
python3 setup.py test
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt
|
|
}
|
|
|
|
python3-pyasn1-modules_package() {
|
|
depends="python3-pyasn1"
|
|
pycompile_module="pyasn1_modules"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.txt
|
|
}
|
|
}
|