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

Jan de Groot jgc at archlinux.org
Sat Nov 8 22:55:38 UTC 2008


    Date: Saturday, November 8, 2008 @ 17:55:38
  Author: jgc
Revision: 18751

upgpkg: plotutils 2.5.1-2
    Fix info installation

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

-------------------+
 PKGBUILD          |    5 +++--
 plotutils.install |   13 +++++++++++++
 2 files changed, 16 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-11-08 22:52:16 UTC (rev 18750)
+++ PKGBUILD	2008-11-08 22:55:38 UTC (rev 18751)
@@ -4,13 +4,13 @@
 
 pkgname=plotutils
 pkgver=2.5.1
-pkgrel=1
+pkgrel=2
 arch=('x86_64' 'i686')
 pkgdesc="Set of utilities and libraries for plotting."
 url="http://directory.fsf.org/graphics/plotutils.html"
 license=("GPL")
 depends=("libpng" "gcc-libs" "libxaw>=1.0.5")
-makedepends=("flex")
+install=plotutils.install
 source=(http://ftp.gnu.org/pub/gnu/plotutils/$pkgname-$pkgver.tar.gz)
 options=('!libtool')
 md5sums=('fad3bc273de4ca5d74462b908db658ce')
@@ -23,4 +23,5 @@
 	--enable-libplotter || return 1
   make || return 1
   make DESTDIR="${pkgdir}" install || return 1
+  rm -f "${pkgdir}/usr/share/info/dir"
 }

Added: plotutils.install
===================================================================
--- plotutils.install	                        (rev 0)
+++ plotutils.install	2008-11-08 22:55:38 UTC (rev 18751)
@@ -0,0 +1,13 @@
+infodir=/usr/share/info
+
+post_install() {
+  install-info $infodir/plotutils.info $infodir/dir 2> /dev/null
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  install-info --delete $infodir/plotutils.info $infodir/dir 2> /dev/null
+}




More information about the arch-commits mailing list