Guest User

PKGBUILD for postgresql-autodoc

a guest
Jan 4th, 2014
50
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Gustavo Dutra <mechamo@gustavodutra.com>
  2. # Contributor: nblock <nblock [/at\] archlinux DOT us
  3.  
  4. pkgname=postgresql-autodoc
  5. _pkgname=postgresql_autodoc
  6. pkgver=1.41
  7. pkgrel=3
  8. pkgdesc="Translate PostgreSQL tables to HTML, Dot, Dia and DocBook XML files."
  9. url="http://www.rbt.ca/autodoc/index.html"
  10. license=("3-clause BSD")
  11. depends=('perl' 'perl-dbd-pg' 'perl-term-readkey' 'perl-html-template')
  12. arch=('any')
  13. source=(http://www.rbt.ca/autodoc/binaries/${_pkgname}-${pkgver}.tar.gz)
  14. md5sums=('a23ae4a49bfd0c14375b3ea6e04cd5b9')
  15.  
  16. build() {
  17.     cd ${srcdir}/${_pkgname}
  18.  
  19.   # Prepare the binary, but skip the manpage since upstream
  20.   # forgot to include manpage source (postgresql_autodoc.in)
  21.   make -o ${_pkgname}.1 PREFIX=/usr
  22.  
  23.   # Fixup the default path in the manpage, until no proper upstream fix is available.
  24.   sed -i -e "s|/usr/local/share/postgresql_autodoc|/usr/share/${_pkgname}|" ${_pkgname}.1
  25. }
  26.  
  27. package() {
  28.     cd ${srcdir}/${_pkgname}
  29.   make -o ${_pkgname}.1 install PREFIX=/usr DESTDIR=${pkgdir}
  30.  
  31.   # Fix manpage permission
  32.   chmod 644 ${pkgdir}/usr/share/man/man1/${_pkgname}.1
  33. }
  34.  
  35. # vim:set ts=2 sw=2 noet:
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×