Date: Friday, January 27, 2023 @ 12:10:17
Author: freswa
Revision: 467439
archrelease: copy trunk to testing-x86_64
Added:
postgresql-old-upgrade/repos/testing-x86_64/
postgresql-old-upgrade/repos/testing-x86_64/PKGBUILD
(from rev 467438, postgresql-old-upgrade/trunk/PKGBUILD)
----------+
PKGBUILD | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
Copied: postgresql-old-upgrade/repos/testing-x86_64/PKGBUILD (from rev 467438,
postgresql-old-upgrade/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2023-01-27 12:10:17 UTC (rev 467439)
@@ -0,0 +1,67 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Dan McGee <[email protected]>
+
+pkgname=postgresql-old-upgrade
+pkgver=14.6
+_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' 'perl' 'tcl>=8.6.0' 'systemd' 'llvm' 'clang')
+optdepends=('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)
+md5sums=('427c62b6561e272dc3b41bfcefe87fc4')
+sha256sums=('508840fc1809d39ab72274d5f137dabb9fd7fb4f933da4168aeebb20069edf22')
+b2sums=('675283751a51500382395cb07a956fa0392987f938e12c0757c4c537327aa119d62fe86c78372d7607ae1ff4c811a567ffb89a8c087d2d029c32bd7271733fb6')
+
+# Upstream provides md5 and sha256
+
+build() {
+ cd postgresql-${pkgver}
+ local configure_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
+ --without-libxslt
+ --disable-nls
+ --enable-thread-safety
+ --disable-rpath
+ )
+
+ # Fix static libs
+ CFLAGS+=" -ffat-lto-objects"
+
+ ./configure "${configure_options[@]}"
+ 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 -Dm 644 COPYRIGHT -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim:set sw=2 sts=-1 et: