[arch-commits] Commit in (4 files)

Timothy Redaelli tredaelli at archlinux.org
Tue Mar 3 11:31:02 UTC 2015


    Date: Tuesday, March 3, 2015 @ 12:31:02
  Author: tredaelli
Revision: 128611

New package: python2-tlslite

Added:
  python2-tlslite/
  python2-tlslite/repos/
  python2-tlslite/trunk/
  python2-tlslite/trunk/PKGBUILD

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Added: python2-tlslite/trunk/PKGBUILD
===================================================================
--- python2-tlslite/trunk/PKGBUILD	                        (rev 0)
+++ python2-tlslite/trunk/PKGBUILD	2015-03-03 11:31:02 UTC (rev 128611)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: Andy Weidenbaum <archbaum at gmail.com>
+
+pkgname=python2-tlslite
+pkgver=0.4.8
+pkgrel=1
+pkgdesc="SSL/TLS library in pure Python supporting RSA and SRP ciphersuites"
+arch=('any')
+depends=('python2')
+makedepends=('python2-setuptools')
+optdepends=('python2-crypto: fast RSA operations and fast ciphers'
+            'python2-gmpy: fast RSA and SRP operations'
+            'python2-m2crypto: fast RSA operations and fast ciphers'
+            'python2-tackpy: run an X.509 server using TACK')
+url="http://trevp.net/tlslite"
+license=('custom')
+options=(!emptydirs)
+source=(https://pypi.python.org/packages/source/t/${pkgname#python2-}/${pkgname#python2-}-$pkgver.tar.gz)
+sha256sums=('d9b447048a322c70df800f540ab577c93ecf20de52c0a02c8621176e4733bdbb')
+
+prepare(){
+  cd "${pkgname#python2-}-$pkgver"
+
+  find . -type f -print0 | xargs -0 sed -i 's#/usr/bin/python#/usr/bin/python2#g'
+  find . -type f -print0 | xargs -0 sed -i 's#/usr/bin/env python#/usr/bin/env python2#g'
+}
+
+build() {
+  cd "${pkgname#python2-}-$pkgver"
+
+  python2 setup.py build
+}
+
+package() {
+  cd "${pkgname#python2-}-$pkgver"
+
+  python2 setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm 644 README "$pkgdir/usr/share/doc/$pkgname/README"
+}


Property changes on: python2-tlslite/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list