mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
73 lines
2.3 KiB
Bash
73 lines
2.3 KiB
Bash
# $Id: PKGBUILD 52074 2009-09-15 11:16:51Z douglas $
|
|
# Maintainer: Douglas Soares de Andrade <douglas@archlinux.org>
|
|
|
|
pkgname=postgresql
|
|
pkgver=8.4.1
|
|
pkgrel=1
|
|
pkgdesc="A sophisticated object-relational DBMS"
|
|
arch=(i686 x86_64)
|
|
license=('BSD')
|
|
backup=('etc/conf.d/postgresql' 'etc/pam.d/postgresql')
|
|
url="http://www.postgresql.org/"
|
|
depends=("postgresql-libs>=$pkgver" "libxml2" 'readline>=6.0')
|
|
options=('!makeflags')
|
|
source=(ftp://ftp.postgresql.org/pub/source/v${pkgver}/postgresql-${pkgver}.tar.bz2 \
|
|
postgresql postgresql.confd build.patch postgresql.pam)
|
|
|
|
build() {
|
|
cd ${startdir}/src/$pkgname-$pkgver || return 1
|
|
|
|
# patch to remove regress/test make target (won't build with it present)
|
|
patch -Np1 -i ../build.patch || return 1
|
|
|
|
# configure
|
|
./configure --prefix=/usr --mandir=/usr/share/man \
|
|
--with-docdir=/usr/share/doc --with-openssl \
|
|
--datadir=/usr/share/postgresql --with-pam --with-libxml || return 1
|
|
|
|
sed -i -e '/interfaces/d' src/Makefile || return 1
|
|
|
|
# build
|
|
make || return 1
|
|
|
|
# install
|
|
make DESTDIR=${startdir}/pkg install || return 1
|
|
|
|
(
|
|
cd contrib/adminpack;
|
|
make || return 1;
|
|
make DESTDIR=${startdir}/pkg install || return 1;
|
|
);
|
|
|
|
|
|
# clean up unneeded installed items
|
|
rm -rf $startdir/pkg/usr/include/postgresql/internal || return 1
|
|
rm -rf $startdir/pkg/usr/include/libpq || return 1
|
|
# the below line is expected to produce an error; fix this one day
|
|
rm -f $startdir/pkg/usr/include/*
|
|
rm -f $startdir/pkg/usr/bin/pg_config || return 1
|
|
|
|
# Maintaining the lib below because of qt
|
|
#rm -f $startdir/pkg/usr/lib/libpgport.a || return 1
|
|
|
|
# install launch script
|
|
install -D -m755 ../postgresql $startdir/pkg/etc/rc.d/postgresql \
|
|
|| return 1
|
|
|
|
# install license
|
|
install -D -m644 COPYRIGHT $startdir/pkg/usr/share/licenses/$pkgname/LICENSE || return 1
|
|
|
|
# install conf file
|
|
install -D -m644 $startdir/src/postgresql.confd \
|
|
$startdir/pkg/etc/conf.d/postgresql || return 1
|
|
|
|
install -D -m644 $startdir/src/postgresql.pam \
|
|
$startdir/pkg/etc/pam.d/postgresql
|
|
|
|
chown root:root $startdir/pkg/usr/share/doc/postgresql/html/*
|
|
}
|
|
md5sums=('f2015af17bacbbfe140daf0d1067f9c9'
|
|
'7d8ea2abb6a8cdacf35604bda659a34a'
|
|
'df6ddf9e2ab4700a3415f17c0f4f4172'
|
|
'4d74f4227dc5e12bf95b3490758d86c9'
|
|
'96f82c38f3f540b53f3e5144900acf17')
|