[arch-commits] Commit in python-pycryptodome/repos/community-x86_64 (2 files)
Jonas Witschel
diabonas at archlinux.org
Wed Jul 22 13:56:12 UTC 2020
Date: Wednesday, July 22, 2020 @ 13:56:11
Author: diabonas
Revision: 664837
archrelease: copy trunk to community-x86_64
Added:
python-pycryptodome/repos/community-x86_64/PKGBUILD
(from rev 664836, python-pycryptodome/trunk/PKGBUILD)
Deleted:
python-pycryptodome/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 124 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 63 insertions(+), 61 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-22 13:56:05 UTC (rev 664836)
+++ PKGBUILD 2020-07-22 13:56:11 UTC (rev 664837)
@@ -1,61 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
-
-pkgbase=python-pycryptodome
-pkgname=('python-pycryptodome' 'python2-pycryptodome')
-pkgver=3.9.8
-pkgrel=1
-license=('BSD')
-arch=('x86_64')
-url='https://www.pycryptodome.org/'
-makedepends=('gmp' 'python-setuptools' 'python2-setuptools')
-source=("pycryptodome-${pkgver}.tar.gz::https://github.com/Legrandin/pycryptodome/archive/v${pkgver}.tar.gz")
-sha512sums=('2852ef8c51ca066a9877268acfad2da502f4399e9d3556b25bbcc15882071ee6e612d285ee5ab43f59d5c964930cebb2272337027f6242226e9965e6348dfd74')
-
-prepare() {
- cp -a "pycryptodome-$pkgver"{,-python2}
-}
-
-build() {
- cd "$srcdir/pycryptodome-$pkgver"
- python setup.py build
-
- cd "$srcdir/pycryptodome-$pkgver-python2"
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir/pycryptodome-$pkgver"
- python setup.py test
-
- cd "$srcdir/pycryptodome-$pkgver-python2"
- python2 setup.py test
-}
-
-package_python-pycryptodome() {
- pkgdesc="Collection of cryptographic algorithms and protocols, implemented for use from Python 3."
- depends=('python' 'gmp')
- conflicts=('python-crypto')
- provides=('python-crypto')
- replaces=('python-crypto')
-
- cd "pycryptodome-$pkgver"
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
-
- rm -r "$pkgdir"/usr/lib/python3.*/site-packages/Crypto/SelfTest/
-}
-
-package_python2-pycryptodome() {
- pkgdesc="Collection of cryptographic algorithms and protocols, implemented for use from Python 2."
- depends=('python2' 'gmp')
- conflicts=('python2-crypto')
- provides=('python2-crypto')
- replaces=('python2-crypto')
-
- cd "pycryptodome-$pkgver-python2"
- python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
-
- rm -r "$pkgdir"/usr/lib/python2.*/site-packages/Crypto/SelfTest/
-}
Copied: python-pycryptodome/repos/community-x86_64/PKGBUILD (from rev 664836, python-pycryptodome/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-07-22 13:56:11 UTC (rev 664837)
@@ -0,0 +1,63 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
+
+pkgbase=python-pycryptodome
+pkgname=('python-pycryptodome' 'python2-pycryptodome')
+pkgver=3.9.8
+pkgrel=2
+license=('BSD')
+arch=('x86_64')
+url='https://www.pycryptodome.org/'
+makedepends=('gmp' 'python-setuptools' 'python2-setuptools')
+source=("pycryptodome-${pkgver}.tar.gz::https://github.com/Legrandin/pycryptodome/archive/v${pkgver}.tar.gz")
+sha512sums=('2852ef8c51ca066a9877268acfad2da502f4399e9d3556b25bbcc15882071ee6e612d285ee5ab43f59d5c964930cebb2272337027f6242226e9965e6348dfd74')
+
+prepare() {
+ cp -a "pycryptodome-$pkgver"{,-python2}
+}
+
+build() {
+ export PYTHONHASHSEED=0
+
+ cd "$srcdir/pycryptodome-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/pycryptodome-$pkgver-python2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/pycryptodome-$pkgver"
+ python -B setup.py test
+
+ cd "$srcdir/pycryptodome-$pkgver-python2"
+ python2 -B setup.py test
+}
+
+package_python-pycryptodome() {
+ pkgdesc="Collection of cryptographic algorithms and protocols, implemented for use from Python 3."
+ depends=('python' 'gmp')
+ conflicts=('python-crypto')
+ provides=('python-crypto')
+ replaces=('python-crypto')
+
+ cd "pycryptodome-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
+
+ rm -r "$pkgdir"/usr/lib/python3.*/site-packages/Crypto/SelfTest/
+}
+
+package_python2-pycryptodome() {
+ pkgdesc="Collection of cryptographic algorithms and protocols, implemented for use from Python 2."
+ depends=('python2' 'gmp')
+ conflicts=('python2-crypto')
+ provides=('python2-crypto')
+ replaces=('python2-crypto')
+
+ cd "pycryptodome-$pkgver-python2"
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
+
+ rm -r "$pkgdir"/usr/lib/python2.*/site-packages/Crypto/SelfTest/
+}
More information about the arch-commits
mailing list