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

Lukas Fleischer lfleischer at archlinux.org
Thu Dec 19 16:27:41 UTC 2019


    Date: Thursday, December 19, 2019 @ 16:27:41
  Author: lfleischer
Revision: 538422

upgpkg: python-mysql-connector 8.0.18-3: remove Python 2 package

Modified:
  python-mysql-connector/trunk/PKGBUILD

----------+
 PKGBUILD |   38 +++++++++-----------------------------
 1 file changed, 9 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-19 16:19:46 UTC (rev 538421)
+++ PKGBUILD	2019-12-19 16:27:41 UTC (rev 538422)
@@ -2,45 +2,25 @@
 # Contributor: Evgeniy Alekseev <arcanis at archlinux dot org>
 # Contributor: Raphaël Doursenaud <rdoursenaud at free dot fr>
 
-pkgbase=python-mysql-connector
-pkgname=('python-mysql-connector' 'python2-mysql-connector')
+pkgname=python-mysql-connector
 _pkgname=mysql-connector-python
 pkgver=8.0.18
-pkgrel=2
+pkgrel=3
 pkgdesc="A standardized database driver for Python platforms and development"
 arch=('any')
 url="https://dev.mysql.com/downloads/connector/python/"
 license=('GPL')
-depends=('python' 'python2')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
 source=("https://cdn.mysql.com/Downloads/Connector-Python/${_pkgname}-${pkgver}.tar.gz")
 sha512sums=('cb441a6388de8609b56e4d9885ae2491d207c7b1e3bb387341d55853d383eff6e268e34feb32b42797c7b210d35f9d6dbc302ea4c9ed2441a76b91ea66d504b2')
 
-prepare() {
-  cp -r "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py2"
-  # change python to python2
-  find "${_pkgname}-${pkgver}-py2" -name '*.py' -type f -exec \
-      sed -i 's|env python|env python2|' {} \;
-}
-
 build() {
-  cd "${srcdir}/${_pkgname}-${pkgver}"
-  python setup.py build
-
-  cd "${srcdir}/${_pkgname}-${pkgver}-py2"
-  python2 setup.py build
+	cd "${srcdir}/${_pkgname}-${pkgver}"
+	python setup.py build
 }
 
-package_python-mysql-connector() {
-  depends=('python')
-
-  cd "${srcdir}/${_pkgname}-${pkgver}"
-  python setup.py install --root="${pkgdir}" --optimize=1
+package() {
+	cd "${srcdir}/${_pkgname}-${pkgver}"
+	python setup.py install --root="${pkgdir}" --optimize=1
 }
-
-package_python2-mysql-connector() {
-  depends=('python2')
-
-  cd "${srcdir}/${_pkgname}-${pkgver}-py2"
-  python2 setup.py install --root="${pkgdir}" --optimize=1
-}



More information about the arch-commits mailing list