diff options
Diffstat (limited to 'community/python-psycopg2/PKGBUILD')
-rw-r--r-- | community/python-psycopg2/PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/community/python-psycopg2/PKGBUILD b/community/python-psycopg2/PKGBUILD new file mode 100644 index 000000000..167dabc50 --- /dev/null +++ b/community/python-psycopg2/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 41387 2011-03-05 16:09:10Z spupykin $ +# 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> + +pkgbase=python-psycopg2 +pkgname=('python-psycopg2' 'python2-psycopg2') +pkgver=2.4 +pkgrel=3 +pkgdesc="A PostgreSQL database adapter for the Python programming language." +arch=('i686' 'x86_64') +url="http://initd.org/projects/psycopg2" +license=('LGPL3') +makedepends=('python2' 'python' 'postgresql-libs>=8.4.1') +source=(http://www.psycopg.org/psycopg/tarballs/PSYCOPG-${pkgver/./-}/psycopg2-$pkgver.tar.gz) +md5sums=('548d549c4fc4238bf55d0510b2880f47') + +build() { + cd "$srcdir/psycopg2-$pkgver" + # Thanks for the tip, Xentac + sed -i 's/,PSYCOPG_DEBUG$//' setup.cfg +} + +package_python-psycopg2() { + depends=('python' 'postgresql-libs>=8.4.1') + + cd "$srcdir/psycopg2-$pkgver" + python setup.py install --root="$pkgdir" +} + +package_python2-psycopg2() { + depends=('python2' 'postgresql-libs>=8.4.1') + + cd "$srcdir/psycopg2-$pkgver" + python2 setup.py install --root="$pkgdir" +} |