diff --git a/srcpkgs/python-ecdsa/template b/srcpkgs/python-ecdsa/template index fb0401f30b6..e59c046ba85 100644 --- a/srcpkgs/python-ecdsa/template +++ b/srcpkgs/python-ecdsa/template @@ -1,16 +1,38 @@ # Template file for 'python-ecdsa' pkgname=python-ecdsa -version=0.10 +version=0.11 revision=1 +noarch=yes wrksrc="${pkgname/python-/}-${version}" build_style=python-module -hostmakedepends="python" -makedepends="python-devel python-setuptools" -noarch="yes" +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="Python Implementation of ECDSA" +short_desc="Implementation of ECDSA in Python2" maintainer="Juan RP " -homepage="https://github.com/warner/python-ecdsa" +homepage="https://github.com/warner/python-ecdsa/" license="MIT" -distfiles="http://pypi.python.org/packages/source/e/ecdsa/ecdsa-$version.tar.gz" -checksum=67dae9e1af2b0fd71bc9a378654f7dc89211c1c5aee71e160f8cfce1fa6d6980 +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} + } +} diff --git a/srcpkgs/python3.4-ecdsa b/srcpkgs/python3.4-ecdsa new file mode 120000 index 00000000000..7f15d919f9b --- /dev/null +++ b/srcpkgs/python3.4-ecdsa @@ -0,0 +1 @@ +python-ecdsa \ No newline at end of file