2 changed files with 18 additions and 103 deletions
@ -1,68 +0,0 @@
|
||||
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> |
||||
# Maintainer: Dan McGee <dan@archlinux.org> |
||||
|
||||
pkgname=postgresql-old-upgrade |
||||
pkgver=13.6 |
||||
_majorver=${pkgver%.*} |
||||
pkgrel=1.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' '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) |
||||
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 |
||||
--without-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: |
Loading…
Reference in new issue