mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
24 lines
835 B
Bash
Executable file
24 lines
835 B
Bash
Executable file
# Contributor: William Rea <sillywilly@gmail.com>
|
|
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
|
|
}
|