[arch-commits] Commit in postgresql/trunk (PKGBUILD)

Dan McGee dan at archlinux.org
Mon Oct 18 23:43:12 UTC 2010


    Date: Monday, October 18, 2010 @ 19:43:11
  Author: dan
Revision: 96147

upgpkg: postgresql 9.0.1-1
Major version bump to 9.0.1, let's give this a shot.

Modified:
  postgresql/trunk/PKGBUILD

----------+
 PKGBUILD |   42 +++++++++++++++++++-----------------------
 1 file changed, 19 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-10-18 21:46:04 UTC (rev 96146)
+++ PKGBUILD	2010-10-18 23:43:11 UTC (rev 96147)
@@ -1,10 +1,10 @@
 # $Id$
 # Maintainer: Douglas Soares de Andrade <douglas at archlinux.org>
 
-pkgbase=('postgresql')
-pkgname=('postgresql-libs' 'postgresql')
-pkgver=8.4.4
-pkgrel=6
+pkgbase=postgresql
+pkgname=('postgresql-libs' 'postgresql-docs' 'postgresql')
+pkgver=9.0.1
+pkgrel=1
 arch=('i686' 'x86_64')
 url="http://www.postgresql.org"
 license=('BSD')
@@ -28,7 +28,7 @@
   sed -i -e '/interfaces/d' src/Makefile
 
   # build
-  make
+  make world
 
   # build libs
   for dir in src/interfaces src/bin/pg_config; do
@@ -36,13 +36,6 @@
     make
     popd
   done
-
-  cd src/include
-  make
-
-  # build contribs
-  cd ../../contrib/
-  make
 }
 
 package_postgresql-libs() {
@@ -61,7 +54,7 @@
     popd
   done
 
-  install -D -m644 doc/man1/pg_config.1 "${pkgdir}/usr/share/man/man1/pg_config.1"
+  install -D -m644 doc/src/sgml/man1/pg_config.1 "${pkgdir}/usr/share/man/man1/pg_config.1"
 
   cd src/include
 
@@ -81,6 +74,15 @@
   install -m644 libpq/pqcomm.h "${pkgdir}/usr/include/postgresql/internal/libpq/"
 }
 
+package_postgresql-docs() {
+  pkgdesc="HTML documentation for PostgreSQL"
+
+  cd "${srcdir}/${pkgbase}-${pkgver}"
+
+  make -C doc/src/sgml DESTDIR="${pkgdir}" install-html
+  chown -R root:root "${pkgdir}/usr/share/doc/postgresql/html/"
+}
+
 package_postgresql() {
   pkgdesc="A sophisticated object-relational DBMS"
   backup=('etc/conf.d/postgresql' 'etc/pam.d/postgresql' 'etc/logrotate.d/postgresql')
@@ -94,19 +96,15 @@
 
   # install
   make DESTDIR="${pkgdir}" install
+  make -C contrib DESTDIR="${pkgdir}" uninstall
+  make -C doc/src/sgml DESTDIR="${pkgdir}" install-man
   # we don't want this, it is in the -libs package
-  pushd src/bin/pg_config
-  make DESTDIR="${pkgdir}" uninstall
+  make -C src/bin/pg_config DESTDIR="${pkgdir}" uninstall
   rm "${pkgdir}/usr/share/man/man1/pg_config.1"
-  popd
 
   # install license
   install -D -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgbase}/LICENSE"
 
-  # install contribs
-  cd contrib
-  make DESTDIR="${pkgdir}" install
-
   # clean up unneeded installed items
   rm -rf "${pkgdir}/usr/include/postgresql/internal"
   rm -rf "${pkgdir}/usr/include/libpq"
@@ -124,11 +122,9 @@
 
   install -D -m644 ${srcdir}/postgresql.logrotate \
     "${pkgdir}/etc/logrotate.d/postgresql"
-
-  chown root:root "${pkgdir}"/usr/share/doc/postgresql/html/*
 }
 
-md5sums=('4bf2448ad965bca3940df648c02194df'
+md5sums=('57ba57e43cfe29e16dacbf5789be98d1'
          '4153ac0ef4a77e709385b0a13e1c0fad'
          'd63a05943cf0a2726aa2070f3033c569'
          '4d74f4227dc5e12bf95b3490758d86c9'




More information about the arch-commits mailing list