Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=c26ff5fb18082a99beeb33c006aea180818d84f1

commit c26ff5fb18082a99beeb33c006aea180818d84f1
Author: Devil505 <devil505li...@gmail.com>
Date:   Wed Jul 27 10:01:42 2011 +0200

slib-3b3-3-i686
* fixing install script

diff --git a/source/lib-extra/slib/FrugalBuild 
b/source/lib-extra/slib/FrugalBuild
index b08b297..a4fd88f 100644
--- a/source/lib-extra/slib/FrugalBuild
+++ b/source/lib-extra/slib/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=slib
pkgver=3b3
-pkgrel=2
+pkgrel=3
pkgdesc="A library providing functions for Scheme implementations"
url="http://swissnet.ai.mit.edu/~jaffer/SLIB.html";
depends=('guile' 'texinfo')
diff --git a/source/lib-extra/slib/slib.install 
b/source/lib-extra/slib/slib.install
index ed3f0e2..2ff35ee 100644
--- a/source/lib-extra/slib/slib.install
+++ b/source/lib-extra/slib/slib.install
@@ -1,18 +1,14 @@
-post_install() {
-       echo -n "Installing slibcat... "
-       guile -l /usr/share/guile/1.8/slib/guile.init -c "(use-modules (ice-9 
slib)) (require 'new-catalog)"
-       echo "done."
+post_upgrade () {
+  usr/bin/guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))"
+  usr/bin/install-info usr/share/info/slib.info.gz usr/share/info/dir 
2>/dev/null
}
-
-post_upgrade() {
-       post_remove
-       post_install
+post_install() {
+  post_upgrade
}

-post_remove() {
-       echo -n "Removing slibcat... "
-       rm -rf /usr/share/guile/1.8/slibcat
-       echo "done."
+pre_remove() {
+  rm usr/share/guile/site/slibcat
+  usr/bin/install-info --delete usr/share/info/slib.info.gz usr/share/info/dir 
2>/dev/null
}

op=$1
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to