[arch-commits] Commit in autogen/trunk (PKGBUILD autogen.install)

Jan de Groot jgc at archlinux.org
Sat Apr 4 20:47:22 UTC 2009


    Date: Saturday, April 4, 2009 @ 16:47:22
  Author: jgc
Revision: 33832

upgpkg: autogen 5.9.7-1
    Handle info files

Added:
  autogen/trunk/autogen.install
Modified:
  autogen/trunk/PKGBUILD

-----------------+
 PKGBUILD        |    2 ++
 autogen.install |   20 ++++++++++++++++++++
 2 files changed, 22 insertions(+)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-04-04 20:44:51 UTC (rev 33831)
+++ PKGBUILD	2009-04-04 20:47:22 UTC (rev 33832)
@@ -10,6 +10,7 @@
 license=('GPL3')
 depends=('guile>=1.8.6' 'libxml2>=2.7.3' 'libtool>=2.2.6a')
 options=('!libtool' '!makeflags')
+install=autogen.install
 source=(http://downloads.sourceforge.net/autogen/${pkgname}-${pkgver}.tar.bz2)
 md5sums=('71ed6e1104803b99cb962c0dca357014')
 
@@ -18,4 +19,5 @@
   ./configure --prefix=/usr || return 1
   make || return 1
   make DESTDIR="${pkgdir}" install || return 1
+  rm -f ${pkgdir}/usr/share/info/dir
 } 

Added: autogen.install
===================================================================
--- autogen.install	                        (rev 0)
+++ autogen.install	2009-04-04 20:47:22 UTC (rev 33832)
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(autogen.info autogen.info-1 autogen.info-2)
+
+post_install() {
+  for file in ${filelist[@]}; do
+    install-info $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  for file in ${filelist[@]}; do
+    install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
+
+# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list