[arch-commits] Commit in python-pyodbc/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Nov 12 19:13:19 UTC 2020


    Date: Thursday, November 12, 2020 @ 19:13:18
  Author: felixonmars
Revision: 753374

archrelease: copy trunk to community-staging-x86_64

Added:
  python-pyodbc/repos/community-staging-x86_64/
  python-pyodbc/repos/community-staging-x86_64/PKGBUILD
    (from rev 753372, python-pyodbc/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: python-pyodbc/repos/community-staging-x86_64/PKGBUILD (from rev 753372, python-pyodbc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-12 19:13:18 UTC (rev 753374)
@@ -0,0 +1,37 @@
+# Maintainer: Christian Hesse <mail at eworm.de>
+# Contributor: Robert Knauer <robert at privatdemail.net>
+
+pkgbase=python-pyodbc
+pkgname=(python-pyodbc python2-pyodbc)
+_srcname=pyodbc
+pkgver=4.0.28
+pkgrel=2
+pkgdesc='ODBC module for Python'
+arch=('x86_64')
+url='https://github.com/mkleehammer/pyodbc'
+license=('MIT')
+makedepends=('python' 'python2' 'unixodbc')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/mkleehammer/pyodbc/archive/${pkgver}.tar.gz")
+sha256sums=('c85326833c7041c76b6338dcc3db69eb1ea0a7c500212e14271b29e9a77575b7')
+
+prepare() {
+	echo "Version: ${pkgver}.0" > "${srcdir}/${_srcname}-${pkgver}/PKG-INFO"
+}
+
+package_python-pyodbc() {
+	pkgdesc='ODBC module for Python 3.x'
+	depends=('python' 'unixodbc')
+
+	cd "${srcdir}/${_srcname}-${pkgver}"
+
+	python setup.py install --root="${pkgdir}/" --optimize=1
+}
+
+package_python2-pyodbc() {
+	pkgdesc='ODBC module for Python 2.x'
+	depends=('python2' 'unixodbc')
+
+	cd "${srcdir}/${_srcname}-${pkgver}"
+
+	python2 setup.py install --root="${pkgdir}/" --optimize=1
+}



More information about the arch-commits mailing list