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

Evgeniy Alekseev arcanis at archlinux.org
Sat Sep 19 11:31:25 UTC 2015


    Date: Saturday, September 19, 2015 @ 13:31:25
  Author: arcanis
Revision: 140760

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 140759, python-mysql-connector/trunk/ChangeLog)
  python-mysql-connector/repos/community-staging-any/PKGBUILD
    (from rev 140759, python-mysql-connector/trunk/PKGBUILD)

-----------+
 ChangeLog |   20 ++++++++++++++++++++
 PKGBUILD  |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)

Copied: python-mysql-connector/repos/community-staging-any/ChangeLog (from rev 140759, python-mysql-connector/trunk/ChangeLog)
===================================================================
--- community-staging-any/ChangeLog	                        (rev 0)
+++ community-staging-any/ChangeLog	2015-09-19 11:31:25 UTC (rev 140760)
@@ -0,0 +1,20 @@
+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 140759, python-mysql-connector/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 11:31:25 UTC (rev 140760)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: 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=2.0.4
+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')
+source=("http://cdn.mysql.com/Downloads/Connector-Python/${_pkgname}-${pkgver}.tar.gz")
+md5sums=('d6f5532a79c80f0daa90c0f8fc3a0952')
+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