Index: PKGBUILD =================================================================== --- PKGBUILD (revision 318775) +++ PKGBUILD (working copy) @@ -36,6 +36,29 @@ } build() { + cp -a postgresql-${pkgver} postgresql-${pkgver}-python3 + cd postgresql-${pkgver}-python3 + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --datadir=/usr/share/postgresql \ + --sysconfdir=/etc \ + --with-gssapi \ + --with-libxml \ + --with-openssl \ + --with-perl \ + --with-python PYTHON=/usr/bin/python3 \ + --with-tcl \ + --with-pam \ + --with-system-tzdata=/usr/share/zoneinfo \ + --with-uuid=e2fs \ + --enable-nls \ + --enable-thread-safety + make world + cd .. + + #mv postgresql-${pkgver} postgresql-${pkgver}-python3 + #mv postgresql-${pkgver}-python2 postgresql-${pkgver} cd postgresql-${pkgver} ./configure \ --prefix=/usr \ @@ -116,7 +139,8 @@ pkgdesc='Sophisticated object-relational DBMS' backup=('etc/pam.d/postgresql' 'etc/logrotate.d/postgresql') depends=("postgresql-libs>=${pkgver}" 'krb5' 'libxml2' 'readline>=6.0' 'openssl>=1.0.0' 'pam') - optdepends=('python2: for PL/Python support' + optdepends=('python2: for PL/Python 2 support' + 'python3: for PL/Python 3 support' 'perl: for PL/Perl support' 'tcl: for PL/Tcl support' 'postgresql-old-upgrade: upgrade from previous major version using pg_upgrade') @@ -123,6 +147,14 @@ options=('staticlibs') install=postgresql.install + cd postgresql-${pkgver}-python3 + + # install + make DESTDIR="${pkgdir}" install + make -C contrib DESTDIR="${pkgdir}" install + make -C doc/src/sgml DESTDIR="${pkgdir}" install-man + cd .. + cd postgresql-${pkgver} # install