void-packages/srcpkgs/python-ecdsa/template
Alessio Sergi 5b01707c4d python-ecdsa: update to 0.11
Add python3.4 subpkg with pycompile support.
2014-06-29 20:35:32 +02:00

38 lines
1 KiB
Text

# Template file for 'python-ecdsa'
pkgname=python-ecdsa
version=0.11
revision=1
noarch=yes
wrksrc="${pkgname/python-/}-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
makedepends="python-devel python3.4-devel"
depends="python"
pycompile_module="ecdsa"
short_desc="Implementation of ECDSA in Python2"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://github.com/warner/python-ecdsa/"
license="MIT"
distfiles="https://pypi.python.org/packages/source/e/ecdsa/ecdsa-${version}.tar.gz"
checksum=8e3b6c193f91dc94b2f3b0261e3eabbdc604f78ff99fdad324a56fdd0b5e958c
pre_install() {
sed -i 's,#! /usr/bin/env python,&3.4,' build-3.4/lib/ecdsa/*.py
}
post_install() {
vinstall LICENSE 644 usr/share/licenses/${pkgname}
}
python3.4-ecdsa_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="ecdsa"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
vinstall ${wrksrc}/LICENSE 644 usr/share/licenses/${pkgname}
}
}