contrib/psycopg2/Pkgfile

20 lines
546 B
Plaintext
Raw Normal View History

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