1 # Maintainer: Marti Raudsepp <marti@juffo.org>
2 # Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
4 pkgname=postgresql-beta
7 pkgdesc="Beta version of the PostgreSQL database (includes both server and libs)"
9 license=('custom:PostgreSQL')
10 backup=('etc/conf.d/postgresql' 'etc/pam.d/postgresql')
11 url="http://www.postgresql.org/developer/alpha"
12 options=(!strip) # to facilitate debugging of testing builds
13 depends=('libxml2' 'readline>=6.0' 'openssl' 'bash')
14 makedepends=('python2' 'perl')
15 conflicts=('postgresql-libs' 'postgresql')
16 provides=("postgresql-libs=$pkgver" "postgresql=$pkgver")
17 source=(http://ftp.de.postgresql.org/packages/databases/PostgreSQL/source/v$pkgver/postgresql-$pkgver.tar.bz2
18 postgresql.rc postgresql.confd postgresql.pam)
21 cd $srcdir/postgresql-$pkgver
23 ./configure --prefix=/usr --mandir=/usr/share/man --with-libxml \
24 --with-openssl --with-perl \
25 --with-python PYTHON=/usr/bin/python2 --with-pam \
26 --with-system-tzdata=/usr/share/zoneinfo --enable-nls \
27 --datadir=/usr/share/postgresql --enable-thread-safety
30 make DESTDIR=$pkgdir install
32 # build all contrib modules
34 make -C contrib DESTDIR=$pkgdir install
36 install -D -m755 $srcdir/postgresql.rc $pkgdir/etc/rc.d/postgresql
37 install -D -m644 COPYRIGHT $pkgdir/usr/share/licenses/$pkgname/LICENSE
38 install -D -m644 $srcdir/postgresql.confd $pkgdir/etc/conf.d/postgresql
39 install -D -m644 $srcdir/postgresql.pam $pkgdir/etc/pam.d/postgresql
41 md5sums=('b40a59b229750505152c8f07caf30137'
42 '86e0161343ce80e544aba999f284bc88'
43 'df6ddf9e2ab4700a3415f17c0f4f4172'
44 '96f82c38f3f540b53f3e5144900acf17')