[arch-commits] Commit in python-mysql-connector/repos (3 files)

Felix Yan felixonmars at archlinux.org
Sat Jun 30 15:50:17 UTC 2018


    Date: Saturday, June 30, 2018 @ 15:50:16
  Author: felixonmars
Revision: 348332

archrelease: copy trunk to community-staging-any

Added:
  python-mysql-connector/repos/community-staging-any/
  python-mysql-connector/repos/community-staging-any/ChangeLog
    (from rev 348330, python-mysql-connector/trunk/ChangeLog)
  python-mysql-connector/repos/community-staging-any/PKGBUILD
    (from rev 348330, python-mysql-connector/trunk/PKGBUILD)

-----------+
 ChangeLog |   35 +++++++++++++++++++++++++++++++++++
 PKGBUILD  |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+)

Copied: python-mysql-connector/repos/community-staging-any/ChangeLog (from rev 348330, python-mysql-connector/trunk/ChangeLog)
===================================================================
--- community-staging-any/ChangeLog	                        (rev 0)
+++ community-staging-any/ChangeLog	2018-06-30 15:50:16 UTC (rev 348332)
@@ -0,0 +1,35 @@
+2.1.7-1:
+upstream update
+
+2.1.6-1:
+upstream update
+
+2.1.5-1:
+upstream update
+
+2.1.4-1:
+upstream update
+
+2.1.3-1:
+upstream update
+
+2.0.4-2:
+python3.5 rebuild
+
+2.0.4-1:
+upstream update
+
+2.0.3-1:
+upstream update
+
+2.0.2-1:
+upstream update
+
+2.0.1-1:
+upstream update
+
+1.2.3-1:
+upstream update
+
+1.2.2-1:
+move from AUR into [community]

Copied: python-mysql-connector/repos/community-staging-any/PKGBUILD (from rev 348330, python-mysql-connector/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 15:50:16 UTC (rev 348332)
@@ -0,0 +1,47 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# 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=mysql-connector-python
+pkgver=8.0.11
+pkgrel=2
+pkgdesc="A standardized database driver for Python platforms and development"
+arch=('any')
+url="http://dev.mysql.com/downloads/connector/python/"
+license=('GPL')
+depends=('python' 'python2')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://cdn.mysql.com/Downloads/Connector-Python/${_pkgname}-${pkgver}.tar.gz")
+sha512sums=('9fd08f6ea7d9c60a9b9e21628d77ff41e967242441651ff46e7eaaa7dda727357f83e134e21a2bbc82a10b973abe3c56af411ae5ee68715378dc70ed9f25e27f')
+changelog=ChangeLog
+
+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
+}
+
+package_python-mysql-connector() {
+  depends=('python')
+
+  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