# Contributor: William Rea pkgname=python-psycopg1 pkgver=1.1.21 pkgrel=4 pkgdesc="A PostgreSQL database adapter for Python" arch=(i686 x86_64) url="http://initd.org/projects/psycopg1" license=('GPL') depends=('python-egenix-mx-base>=2.0.6-3' 'postgresql>=8.4.1') source=(http://initd.org/pub/software/psycopg/psycopg-$pkgver.tar.gz) md5sums=('a31f79f68d6d32898d6f24e11369a106') build() { cd "$srcdir/psycopg-$pkgver" ./configure --prefix=/usr \ --with-mxdatetime-includes=/usr/lib/python2.6/site-packages/mx/DateTime/mxDateTime make || return 1 sed -e 's:\(echo " install -m 555 $$mod \)\($(PY_MOD_DIR)\)\("; \\\):\1${DESTDIR}\2/$$mod\3:' \ -e 's:\($(INSTALL) -m 555 $$mod \)\($(PY_MOD_DIR)\)\(; \\\):\1${DESTDIR}\2/$$mod\3:' \ -i Makefile make DESTDIR="$pkgdir" install }