[arch-commits] Commit in pycrypto/repos (4 files)

Felix Yan fyan at archlinux.org
Sun Sep 20 01:47:18 UTC 2015


    Date: Sunday, September 20, 2015 @ 03:47:18
  Author: fyan
Revision: 246715

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  pycrypto/repos/staging-i686/
  pycrypto/repos/staging-i686/PKGBUILD
    (from rev 246714, pycrypto/trunk/PKGBUILD)
  pycrypto/repos/staging-x86_64/
  pycrypto/repos/staging-x86_64/PKGBUILD
    (from rev 246714, pycrypto/trunk/PKGBUILD)

-------------------------+
 staging-i686/PKGBUILD   |   64 ++++++++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/PKGBUILD |   64 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 128 insertions(+)

Copied: pycrypto/repos/staging-i686/PKGBUILD (from rev 246714, pycrypto/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2015-09-20 01:47:18 UTC (rev 246715)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: Kritoke <kritoke at gamebox.net>
+
+pkgbase=pycrypto
+pkgname=('python2-crypto' 'python-crypto')
+pkgver=2.6.1
+pkgrel=3
+arch=('i686' 'x86_64')
+makedepends=('python2' 'python' 'gmp')
+url="http://www.dlitz.net/software/pycrypto/"
+license=('custom')
+source=(http://ftp.dlitz.net/pub/dlitz/crypto/${pkgbase}/${pkgbase}-${pkgver}.tar.gz{,.asc})
+sha256sums=('f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c'
+            'c2ab0516cc55321e6543ae75e2aa6f6e56e97432870f32a7799f3b89f467dc1b')
+validpgpkeys=('19E11FE8B3CFF273ED174A24928CEC1339C25CF7')  # Dwayne Litzenberger
+
+prepare() {
+  find ${pkgbase}-${pkgver}/LEGAL -type f -exec chmod 644 {} \;
+  find ${pkgbase}-${pkgver}/LEGAL -type d -exec chmod 755 {} \;
+ 
+  cp -r ${pkgbase}-${pkgver} ${pkgbase}-${pkgver}-py3
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  python2 setup.py build
+
+  cd ../${pkgbase}-${pkgver}-py3
+  python setup.py build
+}
+
+package_python2-crypto() {
+  pkgdesc="Collection of cryptographic algorithms and protocols, implemented for use from Python 2."
+  depends=('python2' 'gmp')
+  replaces=('pycrypto')
+  conflicts=('pycrypto')
+  provides=("pycrypto=${pkgver}")
+
+  cd ${pkgbase}-${pkgver}
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/"
+  cp -r LEGAL "${pkgdir}/usr/share/licenses/${pkgname}/"
+}
+
+package_python-crypto() {
+  pkgdesc="Collection of cryptographic algorithms and protocols, implemented for use from Python 3."
+  depends=('python' 'gmp')
+
+  cd ${pkgbase}-${pkgver}-py3
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/"
+  cp -r LEGAL "${pkgdir}/usr/share/licenses/${pkgname}/"
+}
+
+check() {
+  cd ${pkgbase}-${pkgver}
+  python2 setup.py test
+
+  cd ../${pkgbase}-${pkgver}-py3
+  python setup.py test
+}

Copied: pycrypto/repos/staging-x86_64/PKGBUILD (from rev 246714, pycrypto/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2015-09-20 01:47:18 UTC (rev 246715)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: Kritoke <kritoke at gamebox.net>
+
+pkgbase=pycrypto
+pkgname=('python2-crypto' 'python-crypto')
+pkgver=2.6.1
+pkgrel=3
+arch=('i686' 'x86_64')
+makedepends=('python2' 'python' 'gmp')
+url="http://www.dlitz.net/software/pycrypto/"
+license=('custom')
+source=(http://ftp.dlitz.net/pub/dlitz/crypto/${pkgbase}/${pkgbase}-${pkgver}.tar.gz{,.asc})
+sha256sums=('f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c'
+            'c2ab0516cc55321e6543ae75e2aa6f6e56e97432870f32a7799f3b89f467dc1b')
+validpgpkeys=('19E11FE8B3CFF273ED174A24928CEC1339C25CF7')  # Dwayne Litzenberger
+
+prepare() {
+  find ${pkgbase}-${pkgver}/LEGAL -type f -exec chmod 644 {} \;
+  find ${pkgbase}-${pkgver}/LEGAL -type d -exec chmod 755 {} \;
+ 
+  cp -r ${pkgbase}-${pkgver} ${pkgbase}-${pkgver}-py3
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  python2 setup.py build
+
+  cd ../${pkgbase}-${pkgver}-py3
+  python setup.py build
+}
+
+package_python2-crypto() {
+  pkgdesc="Collection of cryptographic algorithms and protocols, implemented for use from Python 2."
+  depends=('python2' 'gmp')
+  replaces=('pycrypto')
+  conflicts=('pycrypto')
+  provides=("pycrypto=${pkgver}")
+
+  cd ${pkgbase}-${pkgver}
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/"
+  cp -r LEGAL "${pkgdir}/usr/share/licenses/${pkgname}/"
+}
+
+package_python-crypto() {
+  pkgdesc="Collection of cryptographic algorithms and protocols, implemented for use from Python 3."
+  depends=('python' 'gmp')
+
+  cd ${pkgbase}-${pkgver}-py3
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/"
+  cp -r LEGAL "${pkgdir}/usr/share/licenses/${pkgname}/"
+}
+
+check() {
+  cd ${pkgbase}-${pkgver}
+  python2 setup.py test
+
+  cd ../${pkgbase}-${pkgver}-py3
+  python setup.py test
+}



More information about the arch-commits mailing list