[arch-commits] Commit in python-rsa/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Sep 19 17:51:22 UTC 2015
Date: Saturday, September 19, 2015 @ 19:51:22
Author: foutrelis
Revision: 141082
archrelease: copy trunk to community-staging-any
Added:
python-rsa/repos/community-staging-any/
python-rsa/repos/community-staging-any/PKGBUILD
(from rev 141081, python-rsa/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-rsa/repos/community-staging-any/PKGBUILD (from rev 141081, python-rsa/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 17:51:22 UTC (rev 141082)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgbase=python-rsa
+pkgname=(python-rsa python2-rsa)
+pkgver=3.2
+pkgrel=2
+_libname=rsa
+pkgdesc="Pure-Python RSA implementation"
+arch=(any)
+url="http://stuvel.eu/rsa"
+license=('BSD')
+source=(http://pypi.python.org/packages/source/r/$_libname/$_libname-$pkgver.tar.gz)
+#source=(https://bitbucket.org/sybren/$pkgname/get/version-$pkgver.tar.bz2)
+makedepends=(python-setuptools python2-setuptools)
+
+build() {
+ cd "$srcdir/$_libname-$pkgver"
+ #cd "$srcdir/sybren-python-rsa-8f50f506b4a2"
+
+ rm -rf ../buildpy3; mkdir ../buildpy3
+ python setup.py build -b ../buildpy3
+
+ rm -rf ../buildpy2; mkdir ../buildpy2
+ python2 setup.py build -b ../buildpy2
+}
+
+package_python-rsa() {
+ depends=(python-pyasn1)
+
+ cd "$srcdir/$_libname-$pkgver"
+ #cd "$srcdir/sybren-python-rsa-8f50f506b4a2"
+ rm -rf build; ln -s ../buildpy3 build
+ python setup.py install --skip-build -O1 --root="$pkgdir"
+ install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-rsa() {
+ depends=(python2-pyasn1)
+
+ cd "$srcdir/$_libname-$pkgver"
+ #cd "$srcdir/sybren-python-rsa-8f50f506b4a2"
+ rm -rf build; ln -s ../buildpy2 build
+ python2 setup.py install --skip-build -O1 --root="$pkgdir"
+ install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ find "$pkgdir/usr/bin" -type f | while read f; do mv "$f" "$f"2; done
+}
+
+sha256sums=('30f371fbb060747aa53e02c2d53067d8a4f776a7f8ba0e9f0e6bd3f392489777')
More information about the arch-commits
mailing list