From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/python-psycopg1/PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 community/python-psycopg1/PKGBUILD (limited to 'community/python-psycopg1') diff --git a/community/python-psycopg1/PKGBUILD b/community/python-psycopg1/PKGBUILD new file mode 100755 index 000000000..f5ad4cc39 --- /dev/null +++ b/community/python-psycopg1/PKGBUILD @@ -0,0 +1,29 @@ +# $Id: PKGBUILD 27290 2010-09-19 04:29:33Z ebelanger $ +# Contributor: William Rea + +pkgname=python-psycopg1 +pkgver=1.1.21 +pkgrel=5 +pkgdesc="A PostgreSQL database adapter for Python" +arch=('i686' 'x86_64') +url="http://initd.org/projects/psycopg1" +license=('GPL') +depends=('python-egenix-mx-base' 'postgresql') +source=(http://initd.org/pub/software/psycopg/psycopg-$pkgver.tar.gz) +md5sums=('a31f79f68d6d32898d6f24e11369a106') +sha1sums=('02d8a8b5dd682306117896c7c63a9a1b518997b6') + +build() { + cd "$srcdir/psycopg-$pkgver" + ./configure --prefix=/usr --with-python=/usr/bin/python2 \ + --with-mxdatetime-includes=/usr/lib/python2.7/site-packages/mx/DateTime/mxDateTime + 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 +} + +package() { + cd "$srcdir/psycopg-$pkgver" + make DESTDIR="$pkgdir" install +} -- cgit v1.2.3-54-g00ecf