void-packages/srcpkgs/python-ecdsa/template

39 lines
1 KiB
Text
Raw Normal View History

2013-12-28 16:10:16 +00:00
# Template file for 'python-ecdsa'
pkgname=python-ecdsa
version=0.11
2013-12-28 16:10:16 +00:00
revision=1
noarch=yes
2013-12-28 16:10:16 +00:00
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"
2013-12-28 16:10:16 +00:00
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://github.com/warner/python-ecdsa/"
2013-12-28 16:10:16 +00:00
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}
}
}