2008-12-12 10:52:22 +11:00
|
|
|
# Description: Python bindings for PostgreSQL
|
2019-07-28 00:31:37 +10:00
|
|
|
# URL: http://initd.org/psycopg/
|
2015-11-23 21:20:15 -06:00
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
2008-12-12 10:52:22 +11:00
|
|
|
# Depends on: python postgresql
|
|
|
|
|
|
|
|
name=psycopg2
|
2018-05-07 22:19:27 +10:00
|
|
|
version=2.7.4
|
2019-07-28 00:31:37 +10:00
|
|
|
_version=${version%.*}
|
|
|
|
_version=${_version/./-}
|
2008-12-12 10:52:22 +11:00
|
|
|
release=1
|
2019-07-28 00:31:37 +10:00
|
|
|
source=(http://initd.org/psycopg/tarballs/PSYCOPG-$_version/$name-$version.tar.gz)
|
2008-12-12 10:52:22 +11:00
|
|
|
|
|
|
|
build() {
|
2015-11-23 21:20:15 -06:00
|
|
|
cd $name-$version
|
|
|
|
python setup.py install --root=$PKG --prefix=/usr
|
2019-07-28 00:31:37 +10:00
|
|
|
|
|
|
|
find $PKG/usr/lib/python*/site-packages/ -maxdepth 1 -type f \
|
|
|
|
-name "${name#*-}-$version-py*.egg-info" -delete
|
2008-12-12 10:52:22 +11:00
|
|
|
}
|