[arch-commits] Commit in python-pyodbc/repos (2 files)
Christian Hesse
eworm at archlinux.org
Wed Oct 7 13:45:27 UTC 2015
Date: Wednesday, October 7, 2015 @ 15:45:26
Author: eworm
Revision: 143295
archrelease: copy trunk to community-x86_64
Added:
python-pyodbc/repos/community-x86_64/
python-pyodbc/repos/community-x86_64/PKGBUILD
(from rev 143294, python-pyodbc/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-pyodbc/repos/community-x86_64/PKGBUILD (from rev 143294, python-pyodbc/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2015-10-07 13:45:26 UTC (rev 143295)
@@ -0,0 +1,39 @@
+# $Id $
+# 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=3.0.10
+pkgrel=1
+pkgdesc='ODBC module for Python'
+arch=('i686' '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=('942bab2ce0e245f7c6a929f262fe6f79e9940f2785d71cb04359585f425d29f9')
+
+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