diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-06-24 17:45:18 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-06-24 17:45:18 -0300 |
commit | 1d281894276f404075d12ab90cdc3dbff7a89cd2 (patch) | |
tree | 609da5609f9606a1d061c6a1b8fa9d8efc02446e /extra/postgresql-old-upgrade/PKGBUILD | |
parent | 905d4583b1cbf6ee0bca36a3c8bebf6552b4cf38 (diff) | |
parent | 7347bb994a41d021c83e97b503f577f2399302e7 (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community-testing/collectd/PKGBUILD
extra/ffmpeg/PKGBUILD
extra/xulrunner/PKGBUILD
Diffstat (limited to 'extra/postgresql-old-upgrade/PKGBUILD')
-rw-r--r-- | extra/postgresql-old-upgrade/PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/extra/postgresql-old-upgrade/PKGBUILD b/extra/postgresql-old-upgrade/PKGBUILD new file mode 100644 index 000000000..aeceaaaa6 --- /dev/null +++ b/extra/postgresql-old-upgrade/PKGBUILD @@ -0,0 +1,47 @@ +# $Id: PKGBUILD 128097 2011-06-21 19:32:41Z dan $ +# Maintainer: Dan McGee <dan@archlinux.org> + +pkgname=postgresql-old-upgrade +pkgver=8.4.8 +_majorver=${pkgver%.*} +pkgrel=1 +pkgdesc="Minimal PostgreSQL build for migrating between major versions with pg_upgrade" +arch=('i686' 'x86_64') +url="http://www.postgresql.org/" +license=('custom:PostgreSQL') +depends=("postgresql-libs>=${_majorver}" 'libxml2' 'openssl>=1.0.0') +source=(ftp://ftp.postgresql.org/pub/source/v${pkgver}/postgresql-${pkgver}.tar.bz2 + build.patch) + +build() { + cd "${srcdir}/postgresql-${pkgver}" + + # patch to remove regress/test make target (won't build with it present) + patch -Np1 -i ../build.patch + + ./configure --prefix=/opt/pgsql-${_majorver} \ + --with-libxml --with-openssl --without-perl \ + --without-python --with-pam --without-readline \ + --with-system-tzdata=/usr/share/zoneinfo --disable-nls \ + --enable-thread-safety + + make -C src all +} + +package() { + cd "${srcdir}/postgresql-${pkgver}" + + # install + make DESTDIR="${pkgdir}" -C src 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=('4603e8ea30cee97189b62b39022f2043' + '4d74f4227dc5e12bf95b3490758d86c9') +sha256sums=('3e90ef2a86a9f4831e21ff4a574fbfb8e1b8c097af637c93ec43c64c684a0938' + '1f020ae1d921a6f47e4889c2026c5ef69879d204e14aeac9330f89b7e6088348') |