[arch-commits] Commit in postgresql-old-upgrade/repos (2 files)

Jan Steffens heftig at gemini.archlinux.org
Wed Apr 20 17:24:10 UTC 2022


    Date: Wednesday, April 20, 2022 @ 17:24:10
  Author: heftig
Revision: 442980

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 442979, postgresql-old-upgrade/trunk/PKGBUILD)

----------+
 PKGBUILD |   68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)

Copied: postgresql-old-upgrade/repos/testing-x86_64/PKGBUILD (from rev 442979, postgresql-old-upgrade/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2022-04-20 17:24:10 UTC (rev 442980)
@@ -0,0 +1,68 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Dan McGee <dan at archlinux.org>
+
+pkgname=postgresql-old-upgrade
+pkgver=13.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')
+options=('debug')
+source=(https://ftp.postgresql.org/pub/source/v${pkgver}/postgresql-${pkgver}.tar.bz2)
+b2sums=('f5ea95fd9ffc8846e0aaf5bac03b02afa71e62e796bbe40f68af727a2f3c74eddd98cb68427bcc13b87b6fa00a8e2a7b18dd7749318f0a4a32cfdbf9b0e0a873')
+
+# Upstream provides md5 and sha256
+md5sums=('06161451ca1b9fc888ce6e18ca93f7d1')
+sha256sums=('bafc7fa3d9d4da8fe71b84c63ba8bdfe8092935c30c0aa85c24b2c08508f67fc')
+
+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
+    --enable-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: ts=2 sw=2 et:



More information about the arch-commits mailing list