diff options
author | root <root@rshg054.dnsready.net> | 2012-10-17 01:15:52 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-10-17 01:15:52 -0700 |
commit | c84b2cd310f86dc50c4f52a5907cb17652e8c87c (patch) | |
tree | ef3dc614b68e1e6f5966a5d29f3970e27bb7c4f9 /community-testing/python-psycopg2/PKGBUILD | |
parent | 99d0ec7ebad2eda5f3a03098962e3b250e3bef4c (diff) |
Wed Oct 17 01:14:52 PDT 2012
Diffstat (limited to 'community-testing/python-psycopg2/PKGBUILD')
-rw-r--r-- | community-testing/python-psycopg2/PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/community-testing/python-psycopg2/PKGBUILD b/community-testing/python-psycopg2/PKGBUILD new file mode 100644 index 000000000..34534e06a --- /dev/null +++ b/community-testing/python-psycopg2/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 78096 2012-10-16 11:53:16Z allan $ +# 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.5 +pkgrel=2 +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') +source=(http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-$pkgver.tar.gz) +md5sums=('075e4df465e9a863f288d5bdf6e6887e') + +build() { + cd "$srcdir/psycopg2-$pkgver" + 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" +} |