# Maintainer: Levente Polyak # Maintainer: Dan McGee pkgname=postgresql-old-upgrade pkgver=9.5.9 _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') makedepends=('krb5' 'python2' 'perl' 'tcl>=8.6.0') source=(https://ftp.postgresql.org/pub/source/v${pkgver}/postgresql-${pkgver}.tar.bz2) sha256sums=('e98cd5c664ab5a05cb83618ba8078647815cb71f7a60437f0322c7518727cdd4') build() { cd postgresql-${pkgver} ./configure \ --prefix=/opt/pgsql-${_majorver} \ --with-gssapi \ --with-libxml \ --with-openssl \ --with-perl \ --with-python PYTHON=/usr/bin/python2 \ --with-tcl \ --with-pam \ --without-readline \ --with-system-tzdata=/usr/share/zoneinfo \ --with-uuid=e2fs \ --disable-nls \ --enable-thread-safety make -C src all make -C contrib all } package() { cd postgresql-${pkgver} # install make -C src DESTDIR="${pkgdir}" install make -C contrib DESTDIR="${pkgdir}" install # install license install -Dm 644 COPYRIGHT -t "${pkgdir}/usr/share/licenses/${pkgname}" # clean up unneeded installed items rm -rf "${pkgdir}/opt/pgsql-${_majorver}/include" } # vim: ts=2 sw=2 et: