summaryrefslogtreecommitdiff
path: root/libre/python-psycopg2.6/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/python-psycopg2.6/PKGBUILD')
-rw-r--r--libre/python-psycopg2.6/PKGBUILD37
1 files changed, 26 insertions, 11 deletions
diff --git a/libre/python-psycopg2.6/PKGBUILD b/libre/python-psycopg2.6/PKGBUILD
index 25b10fb49..abf578d5e 100644
--- a/libre/python-psycopg2.6/PKGBUILD
+++ b/libre/python-psycopg2.6/PKGBUILD
@@ -1,36 +1,51 @@
# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
-# Maintainer: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
-# Maintainer: Douglas Soares de Andrade <dsa@aur.archlinux.org>
+# Maintainer: Luke Shumaker <lukeshu@lukeshu.com>
+# Maintainer (Arch:python-psycopg2): Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer (Arch:python-psycopg2): Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
+# Maintainer (Arch:python-psycopg2): Douglas Soares de Andrade <dsa@aur.archlinux.org>
+
+# Rational for inclusion in [libre]:
+# - Used by libre/parabolaweb-utils
pkgbase=python-psycopg2
pkgname=('python-psycopg2' 'python2-psycopg2')
-pkgver=2.6.2
-pkgrel=2
+pkgbase=${pkgbase}.6
+pkgname=("${pkgname[@]/%/.6}")
+_gitver=4ae2a366109e6f7258728d46ec34e26cf91d53b7
+pkgver=2.6.3dev0.rev21.git4ae2a366
+pkgrel=1
pkgdesc="A PostgreSQL database adapter for the Python programming language."
arch=('i686' 'x86_64')
url="http://initd.org/psycopg/"
license=('LGPL3')
makedepends=('python2' 'python' 'postgresql-libs>=8.4.1')
-validpgpkeys=('8AD609956CF1899418E19A856013BD3AFCF957DE')
-source=(http://initd.org/psycopg/tarballs/PSYCOPG-2-6/psycopg2-$pkgver.tar.gz{,.asc})
-sha256sums=('70490e12ed9c5c818ecd85d185d363335cc8a8cbf7212e3c185431c79ff8c05c'
- 'SKIP')
+makedepends+=('git')
+source=("psycopg2-$pkgver::git+https://github.com/psycopg/psycopg2.git#commit=${_gitver}")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/psycopg2-$pkgver"
+ echo "$(python setup.py --version|sed -r 's/\.([a-z])/\1/')$(git describe --tags|sed -r -e 's/-g/.git/' -e 's/.*-/.rev/')"
+}
build() {
cd "$srcdir/psycopg2-$pkgver"
sed -i 's/,PSYCOPG_DEBUG$//' setup.cfg
}
-package_python-psycopg2() {
+package_python-psycopg2.6() {
depends=('python' 'postgresql-libs>=8.4.1')
+ provides=("python-psycopg2=$pkgver")
+ conflicts=('python-psycopg2')
cd "$srcdir/psycopg2-$pkgver"
python setup.py install --root="$pkgdir"
}
-package_python2-psycopg2() {
+package_python2-psycopg2.6() {
depends=('python2' 'postgresql-libs>=8.4.1')
+ provides=("python2-psycopg2=$pkgver")
+ conflicts=('python2-psycopg2')
cd "$srcdir/psycopg2-$pkgver"
python2 setup.py install --root="$pkgdir"