2 changed files with 69 additions and 1 deletions
@ -0,0 +1,68 @@
|
||||
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> |
||||
# Maintainer: Dan McGee <dan@archlinux.org> |
||||
|
||||
pkgname=postgresql-old-upgrade |
||||
pkgver=13.7 |
||||
_majorver=${pkgver%.*} |
||||
pkgrel=3 |
||||
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' 'libldap' 'krb5' 'llvm-libs') |
||||
makedepends=('python' 'perl' 'tcl>=8.6.0' '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) |
||||
md5sums=('dba6e30a292af33996e84a5b0a3739a4') |
||||
sha256sums=('1b905bf4f3d83614a393b3c51fd345910fd261e4f5124a68d9a1fdd3a2a46399') |
||||
b2sums=('2d8a505f6de4eb31cae415529eeac750a60abafcf45e7fde29043597b385a8150fac55df659f8c2ad200822e8063d388ed606dff9108d4407f9e26b893fa62f4') |
||||
|
||||
# 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 |
||||
--without-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: ts=2 sw=2 et: |
Loading…
Reference in new issue