Date: Wednesday, December 9, 2020 @ 21:52:36 Author: anthraxx Revision: 403228
archrelease: copy trunk to extra-x86_64 Added: postgresql-old-upgrade/repos/extra-x86_64/PKGBUILD (from rev 403227, postgresql-old-upgrade/trunk/PKGBUILD) Deleted: postgresql-old-upgrade/repos/extra-x86_64/PKGBUILD ----------+ PKGBUILD | 165 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 83 insertions(+), 82 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-12-09 21:52:32 UTC (rev 403227) +++ PKGBUILD 2020-12-09 21:52:36 UTC (rev 403228) @@ -1,82 +0,0 @@ -# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> -# Maintainer: Dan McGee <d...@archlinux.org> - -pkgname=postgresql-old-upgrade -pkgver=11.9 -_majorver=${pkgver%.*} -pkgrel=2 -pkgdesc='PostgreSQL build for migrating between major versions with pg_upgrade' -url='https://www.postgresql.org/' -arch=('x86_64') -license=('custom:PostgreSQL') -depends=("postgresql-libs>=${_majorver}" 'libxml2' 'openssl>=1.0.0' 'pam' - 'zlib' 'icu' 'systemd-libs' 'libldap' 'krb5') -makedepends=('python' 'python2' 'perl' 'tcl>=8.6.0' 'systemd') -optdepends=('python2: for PL/Python 2 support' - 'python: for PL/Python 3 support' - 'perl: for PL/Perl support' - 'tcl: for PL/Tcl support') -source=(https://ftp.postgresql.org/pub/source/v${pkgver}/postgresql-${pkgver}.tar.bz2) -sha256sums=('35618aa72e0372091f923c42389c6febd07513157b4fbb9408371706afbb6635') -sha512sums=('2c5c2f51aa01f02af4aa0849441767383e30fef69dd52efa442892f39d2456bfa8bf01f633a265e00eca0745e792609d2c1d33f77d8f29a02f5f374c84f2bf6e') -b2sums=('655d1c9e6eebde19402a4c220ee674c589641c5b6f4e6298c8c06d3330069178952455f5af58f90b9af196ba9c8fd03db0ccd70b8bc49335e465f0ed537eaf59') - -build() { - cd postgresql-${pkgver} - local options=( - --prefix=/opt/pgsql-${_majorver} - --with-gssapi - --with-libxml - --with-openssl - --with-perl - --with-python - --with-tcl - --with-pam - --without-readline - --with-system-tzdata=/usr/share/zoneinfo - --with-uuid=e2fs - --with-icu - --with-systemd - --with-ldap - --disable-nls - --enable-thread-safety - ) - - # only build plpython3 for now - ./configure ${options[@]} \ - PYTHON=/usr/bin/python - make -C src/pl/plpython all - make -C contrib/hstore_plpython all - make -C contrib/ltree_plpython all - - # save plpython3 build and Makefile.global - cp -a src/pl/plpython{,3} - cp -a contrib/hstore_plpython{,3} - cp -a contrib/ltree_plpython{,3} - cp -a src/Makefile.global{,.python3} - make distclean - - # regular build with everything - ./configure ${options[@]} \ - PYTHON=/usr/bin/python2 - make -C src all - make -C contrib all -} - -package() { - cd postgresql-${pkgver} - make -C src DESTDIR="${pkgdir}" install - make -C contrib DESTDIR="${pkgdir}" install - - # install plpython3 - mv src/Makefile.global src/Makefile.global.save - cp src/Makefile.global.python3 src/Makefile.global - touch -r src/Makefile.global.save src/Makefile.global - make -C src/pl/plpython3 DESTDIR="${pkgdir}" install - make -C contrib/hstore_plpython3 DESTDIR="${pkgdir}" install - make -C contrib/ltree_plpython3 DESTDIR="${pkgdir}" install - - install -Dm 644 COPYRIGHT -t "${pkgdir}/usr/share/licenses/${pkgname}" -} - -# vim: ts=2 sw=2 et: Copied: postgresql-old-upgrade/repos/extra-x86_64/PKGBUILD (from rev 403227, postgresql-old-upgrade/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-12-09 21:52:36 UTC (rev 403228) @@ -0,0 +1,83 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Maintainer: Dan McGee <d...@archlinux.org> + +pkgname=postgresql-old-upgrade +pkgver=12.5 +_majorver=${pkgver%.*} +pkgrel=1 +pkgdesc='PostgreSQL build for migrating between major versions with pg_upgrade' +url='https://www.postgresql.org/' +arch=('x86_64') +license=('custom:PostgreSQL') +depends=("postgresql-libs>=${_majorver}" 'libxml2' 'openssl>=1.0.0' 'pam' + 'zlib' 'icu' 'systemd-libs' 'libldap' 'krb5' 'llvm-libs') +makedepends=('python' 'python2' 'perl' 'tcl>=8.6.0' 'systemd' 'llvm' 'clang') +optdepends=('python2: for PL/Python 2 support' + 'python: for PL/Python 3 support' + 'perl: for PL/Perl support' + 'tcl: for PL/Tcl support') +source=(https://ftp.postgresql.org/pub/source/v${pkgver}/postgresql-${pkgver}.tar.bz2) +sha256sums=('bd0d25341d9578b5473c9506300022de26370879581f5fddd243a886ce79ff95') +sha512sums=('9895bcb1bb26206500666ab4441e663ef83702d428b85a6ff177a4eaf44b0ae06b35d5c4da2672ccb4ec18296649af95bf2f0aed526afaa6a216a8c2d2c5627e') +b2sums=('7f7458346a0823d155f5caea0061aa14048d6f3cac27b1ea23dba03b02a39f39314ad1d44e589520d5e287004ffd32e042fea99ebfeda24b2cc23867b402d336') + +build() { + cd postgresql-${pkgver} + local options=( + --prefix=/opt/pgsql-${_majorver} + --with-gssapi + --with-libxml + --with-openssl + --with-perl + --with-python + --with-tcl + --with-pam + --without-readline + --with-system-tzdata=/usr/share/zoneinfo + --with-uuid=e2fs + --with-icu + --with-systemd + --with-ldap + --with-llvm + --disable-nls + --enable-thread-safety + ) + + # only build plpython3 for now + ./configure "${options[@]}" \ + PYTHON=/usr/bin/python + make -C src/pl/plpython all + make -C contrib/hstore_plpython all + make -C contrib/ltree_plpython all + + # save plpython3 build and Makefile.global + cp -a src/pl/plpython{,3} + cp -a contrib/hstore_plpython{,3} + cp -a contrib/ltree_plpython{,3} + cp -a src/Makefile.global{,.python3} + make distclean + + # regular build with everything + ./configure "${options[@]}" \ + PYTHON=/usr/bin/python2 + make -C src all + make -C contrib all +} + +package() { + cd postgresql-${pkgver} + make -C src DESTDIR="${pkgdir}" install + make -C contrib DESTDIR="${pkgdir}" install + + # install plpython3 + mv src/Makefile.global src/Makefile.global.save + cp src/Makefile.global.python3 src/Makefile.global + touch -r src/Makefile.global.save src/Makefile.global + make -C src/pl/plpython3 DESTDIR="${pkgdir}" install + make -C contrib/hstore_plpython3 DESTDIR="${pkgdir}" install + make -C contrib/ltree_plpython3 DESTDIR="${pkgdir}" install + + install -Dm 644 COPYRIGHT -t "${pkgdir}/usr/share/licenses/${pkgname}" +} + +# vim: ts=2 sw=2 et: