# $Id: PKGBUILD 196303 2013-10-11 09:53:41Z dan $ # Maintainer: Dan McGee pkgname=postgresql-old-upgrade pkgver=9.2.5 _majorver=${pkgver%.*} pkgrel=1 pkgdesc="PostgreSQL build for migrating between major versions with pg_upgrade" arch=('i686' 'x86_64' 'mips64el') url="http://www.postgresql.org/" license=('custom:PostgreSQL') depends=("postgresql-libs>=${_majorver}" 'libxml2' 'openssl>=1.0.0') makedepends=('krb5' 'python2' 'perl' 'tcl>=8.6.0') source=(http://ftp.postgresql.org/pub/source/v${pkgver}/postgresql-${pkgver}.tar.bz2) build() { cd "${srcdir}/postgresql-${pkgver}" ./configure --prefix=/opt/pgsql-${_majorver} \ --with-krb5 \ --with-libxml \ --with-openssl \ --with-perl \ --with-python PYTHON=/usr/bin/python2 \ --with-tcl \ --with-pam \ --without-readline \ --with-system-tzdata=/usr/share/zoneinfo \ --disable-nls \ --enable-thread-safety make -C src all make -C contrib all } package() { cd "${srcdir}/postgresql-${pkgver}" # install make -C src DESTDIR="${pkgdir}" install make -C contrib DESTDIR="${pkgdir}" install # install license install -D -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" # clean up unneeded installed items rm -rf "${pkgdir}/opt/pgsql-${_majorver}/include/" } md5sums=('e8438e0ed5e6371741be7697886e7340') sha256sums=('22c1edfd6a404bb15fba655863e94f09a10716ded1910a8bc98ee85f413007a4')