2013-12-28 17:10:16 +01:00
|
|
|
# Template file for 'python-ecdsa'
|
|
|
|
pkgname=python-ecdsa
|
2014-06-29 20:34:29 +02:00
|
|
|
version=0.11
|
2013-12-28 17:10:16 +01:00
|
|
|
revision=1
|
2014-06-29 20:34:29 +02:00
|
|
|
noarch=yes
|
2013-12-28 17:10:16 +01:00
|
|
|
wrksrc="${pkgname/python-/}-${version}"
|
|
|
|
build_style=python-module
|
2014-06-29 20:34:29 +02:00
|
|
|
python_versions="2.7 3.4"
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
|
|
makedepends="python-devel python3.4-devel"
|
|
|
|
depends="python"
|
2014-01-01 16:10:11 +01:00
|
|
|
pycompile_module="ecdsa"
|
2014-06-29 20:34:29 +02:00
|
|
|
short_desc="Implementation of ECDSA in Python2"
|
2013-12-28 17:10:16 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2014-06-29 20:34:29 +02:00
|
|
|
homepage="https://github.com/warner/python-ecdsa/"
|
2013-12-28 17:10:16 +01:00
|
|
|
license="MIT"
|
2014-06-29 20:34:29 +02:00
|
|
|
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}
|
|
|
|
}
|
|
|
|
}
|