[arch-commits] Commit in python-pycryptodomex/trunk (PKGBUILD)

Ike Devolder idevolder at archlinux.org
Mon Sep 30 18:11:29 UTC 2019


    Date: Monday, September 30, 2019 @ 18:11:29
  Author: idevolder
Revision: 512206

upgpkg: python-pycryptodomex 3.9.0-1

Modified:
  python-pycryptodomex/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++------
 1 file changed, 24 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-30 17:47:57 UTC (rev 512205)
+++ PKGBUILD	2019-09-30 18:11:29 UTC (rev 512206)
@@ -1,8 +1,10 @@
 # Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
 # Contributor: Ivan Shapovalov <intelfx at intelfx.name>
 
-pkgname=python-pycryptodomex
-pkgver=3.8.2
+pkgbase=python-pycryptodomex
+pkgname=('python-pycryptodomex' 'python2-pycryptodomex')
+pkgver=3.9.0
 pkgrel=1
 
 pkgdesc='A self-contained Python package of low-level cryptographic primitives'
@@ -10,19 +12,26 @@
 arch=('x86_64')
 license=('BSD')
 
-depends=('python')
-makedepends=('python-setuptools')
+makedepends=('python-setuptools'
+             'python2-setuptools')
 
 source=("https://pypi.org/packages/source/p/pycryptodomex/pycryptodomex-$pkgver.tar.gz")
+sha512sums=('0ffc76780bee46a1ef38b131804ba63d511a57ad6b173366ee1ae2ac81e7718546e4c29a538fcc547c272f52ab679c45ed9de273fe57fb6ebc365d940aaa4cfa')
 
-md5sums=('d755d7bae113d66dba3eb77b022c336e')
+prepare() {
+	cp -a pycryptodomex-$pkgver{,-python2}
+}
 
 build() {
 	cd "$srcdir"/pycryptodomex-$pkgver
 	python setup.py build
+
+	cd "$srcdir"/pycryptodomex-$pkgver-python2
+	python2 setup.py build
 }
 
-package() {
+package_python-pycryptodomex() {
+	depends=('python')
 
 	cd pycryptodomex-$pkgver
 	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
@@ -29,3 +38,12 @@
 
 	install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
 }
+
+package_python2-pycryptodomex() {
+	depends=('python2')
+
+	cd pycryptodomex-$pkgver-python2
+	python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+	install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
+}


More information about the arch-commits mailing list