blob: aeceaaaa6ecc139ba2a070226703eb758887972f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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')
|