32 lines
1.0 KiB
Bash
32 lines
1.0 KiB
Bash
# Template file for 'python-psycopg2'
|
|
pkgname=python-psycopg2
|
|
version=2.7.3.2
|
|
revision=1
|
|
wrksrc="psycopg2-${version}"
|
|
build_style=python-module
|
|
pycompile_module="psycopg2"
|
|
# Require postgresql-libs-devel to find executable: pg_config
|
|
hostmakedepends="python-devel python3-devel postgresql-libs-devel"
|
|
# Require postgresql-libs-devel for libpq-fe.h
|
|
makedepends="python-devel python3-devel postgresql-libs-devel"
|
|
short_desc="PostgreSQL adapter for Python2"
|
|
maintainer="Toyam Cox <Vaelatern@gmail.com>"
|
|
license="LGPL-3"
|
|
homepage="http://initd.org/psycopg"
|
|
distfiles="${PYPI_SITE}/p/psycopg2/psycopg2-${version}.tar.gz"
|
|
checksum=5c3213be557d0468f9df8fe2487eaf2990d9799202c5ff5cb8d394d09fad9b2a
|
|
|
|
python3-psycopg2_package() {
|
|
pycompile_module="psycopg2"
|
|
replaces="python3.4-psycopg2>=0"
|
|
short_desc="${short_desc/Python/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|
|
python3.4-psycopg2_package() {
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-psycopg2>=${version}_${revision}"
|
|
}
|