1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Maintainer: Dan McGee <dan@archlinux.org>
4 pkgname=postgresql-old-upgrade
8 pkgdesc='PostgreSQL build for migrating between major versions with pg_upgrade'
9 url='https://www.postgresql.org/'
11 license=('custom:PostgreSQL')
12 depends=("postgresql-libs>=${_majorver}" 'libxml2' 'openssl>=1.0.0' 'pam'
13 'zlib' 'icu' 'systemd-libs' 'libldap' 'krb5' 'llvm-libs')
14 makedepends=('python' 'perl' 'tcl>=8.6.0' 'systemd' 'llvm' 'clang')
15 optdepends=('python: for PL/Python 3 support'
16 'perl: for PL/Perl support'
17 'tcl: for PL/Tcl support')
19 source=(https://ftp.postgresql.org/pub/source/v${pkgver}/postgresql-${pkgver}.tar.bz2)
20 md5sums=('ec56d5c6dbff89a771d00dd7ec9d4d23')
21 sha256sums=('73876fdd3a517087340458dca4ce15b8d2a4dbceb334c0441424551ae6c4cded')
22 b2sums=('eb076382027a175789652a6ae8579d9b9c8856918741e8058456d22f1ef89525cff5fafe863bf615f658bc94b740b00d1268825969e37a7cefed6b5c90f402c5')
24 # Upstream provides md5 and sha256
27 cd postgresql-${pkgver}
28 local configure_options=(
29 --prefix=/opt/pgsql-${_majorver}
38 --with-system-tzdata=/usr/share/zoneinfo
46 --enable-thread-safety
51 CFLAGS+=" -ffat-lto-objects"
53 ./configure "${configure_options[@]}"
59 cd postgresql-${pkgver}
62 make -C src DESTDIR="${pkgdir}" install
63 make -C contrib DESTDIR="${pkgdir}" install
65 install -Dm 644 COPYRIGHT -t "${pkgdir}/usr/share/licenses/${pkgname}"