summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.AURINFO15
-rw-r--r--.SRCINFO16
-rwxr-xr-xPKGBUILD35
3 files changed, 66 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO
new file mode 100644
index 00000000000..9998b49cbcf
--- /dev/null
+++ b/.AURINFO
@@ -0,0 +1,15 @@
+pkgbase = postgresql-autodoc
+ pkgdesc = Translate PostgreSQL tables to HTML, Dot, Dia and DocBook XML files.
+ pkgver = 1.41
+ pkgrel = 4
+ url = https://web.archive.org/web/20130712095001/http://www.rbt.ca/autodoc/index.html
+ arch = any
+ license = 3-clause BSD
+ depends = perl
+ depends = perl-dbd-pg
+ depends = perl-term-readkey
+ depends = perl-html-template
+ source = https://web.archive.org/web/20130712095001/http://www.rbt.ca/autodoc/binaries//postgresql_autodoc-1.41.tar.gz
+
+pkgname = postgresql-autodoc
+
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f56d12067af
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = postgresql-autodoc
+ pkgdesc = Translate PostgreSQL tables to HTML, Dot, Dia and DocBook XML files.
+ pkgver = 1.41
+ pkgrel = 4
+ url = https://web.archive.org/web/20130712095001/http://www.rbt.ca/autodoc/index.html
+ arch = any
+ license = 3-clause BSD
+ depends = perl
+ depends = perl-dbd-pg
+ depends = perl-term-readkey
+ depends = perl-html-template
+ source = https://web.archive.org/web/20130712095001/http://www.rbt.ca/autodoc/binaries//postgresql_autodoc-1.41.tar.gz
+ md5sums = a23ae4a49bfd0c14375b3ea6e04cd5b9
+
+pkgname = postgresql-autodoc
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..e88e772989c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: nblock <nblock [/at\] archlinux DOT us
+# Contributor: Gustavo Dutra <mechamo@gustavodutra.com>
+
+pkgname=postgresql-autodoc
+_pkgname=postgresql_autodoc
+pkgver=1.41
+pkgrel=4
+pkgdesc="Translate PostgreSQL tables to HTML, Dot, Dia and DocBook XML files."
+url="https://web.archive.org/web/20130712095001/http://www.rbt.ca/autodoc/index.html"
+license=("3-clause BSD")
+depends=('perl' 'perl-dbd-pg' 'perl-term-readkey' 'perl-html-template')
+arch=('any')
+source=(https://web.archive.org/web/20130712095001/http://www.rbt.ca/autodoc/binaries//${_pkgname}-${pkgver}.tar.gz)
+md5sums=('a23ae4a49bfd0c14375b3ea6e04cd5b9')
+
+build() {
+ cd ${srcdir}/${_pkgname}
+
+ # Prepare the binary, but skip the manpage since upstream
+ # forgot to include manpage source (postgresql_autodoc.in)
+ make -o ${_pkgname}.1 PREFIX=/usr
+
+ # Fixup the default path in the manpage, until a proper upstream fix is available.
+ sed -i -e "s|/usr/local/share/postgresql_autodoc|/usr/share/${_pkgname}|" ${_pkgname}.1
+}
+
+package() {
+ cd ${srcdir}/${_pkgname}
+ make -o ${_pkgname}.1 install PREFIX=/usr DESTDIR=${pkgdir}
+
+ # Fix manpage permission
+ chmod 644 ${pkgdir}/usr/share/man/man1/${_pkgname}.1
+}
+
+# vim:set ts=2 sw=2 noet: