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

Jelle van der Waa jelle at archlinux.org
Wed May 13 19:31:13 UTC 2020


    Date: Wednesday, May 13, 2020 @ 19:31:13
  Author: jelle
Revision: 627763

remove python2 module

Modified:
  python-pynacl/trunk/PKGBUILD

----------+
 PKGBUILD |   29 +++++------------------------
 1 file changed, 5 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-13 19:27:46 UTC (rev 627762)
+++ PKGBUILD	2020-05-13 19:31:13 UTC (rev 627763)
@@ -1,10 +1,9 @@
 # Maintainer: Johannes Löthberg <johannes at kyriasis.com>
 # Contributor: Ivan Shapovalov <intelfx at intelfx.name>
 
-pkgbase=python-pynacl
-pkgname=(python-pynacl python2-pynacl)
+pkgname=python-pynacl
 pkgver=1.3.0
-pkgrel=3
+pkgrel=4
 
 pkgdesc='Python binding to the Networking and Cryptography (NaCl) library'
 url='https://pypi.python.org/pypi/PyNaCl'
@@ -12,30 +11,21 @@
 license=('Apache')
 
 depends=('libsodium')
-makedepends=('python-setuptools' 'python-pycparser' 'python-cffi'
-             'python2-setuptools' 'python2-pycparser' 'python2-cffi')
+depends=('libsodium' 'python' 'python-six' 'python-cffi')
+makedepends=('python-setuptools' 'python-pycparser')
 
 source=("https://pypi.org/packages/source/P/PyNaCl/PyNaCl-$pkgver.tar.gz")
 
 sha512sums=('1762d7d9add6ca59ce83e394071861f78f27d0f06ad1481255ebb66023186127e1a67b49a2c2f51bcbd97bdd151a3a2adea099c47c2a9f456dda5e3b1508af50')
 
-prepare() {
-	cp -a PyNaCl-$pkgver{,-python2}
-}
-
 build() {
 	export SODIUM_INSTALL=system
 
 	cd "$srcdir"/PyNaCl-$pkgver
 	python setup.py build
-
-	cd "$srcdir"/PyNaCl-$pkgver-python2
-	python2 setup.py build
 }
 
-package_python-pynacl() {
-	depends=('libsodium' 'python' 'python-six' 'python-cffi')
-
+package() {
 	export SODIUM_INSTALL=system
 
 	cd PyNaCl-$pkgver
@@ -42,13 +32,4 @@
 	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 }
 
-package_python2-pynacl() {
-	depends=('libsodium' 'python2' 'python2-six' 'python2-cffi')
-
-	export SODIUM_INSTALL=system
-
-	cd PyNaCl-$pkgver-python2
-	python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
-
 # vim: set ts=4 sw=4 tw=0 ft=PKGBUILD :


More information about the arch-commits mailing list