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

commit df6de9deefcb61e05c7884ed4c27fd2cbef5c947
Author: Devil505 <devil505li...@gmail.com>
Date:   Wed Jul 27 09:51:23 2011 +0200

slib-3b3-2-i686
* changed source
* fixing build and path

diff --git a/source/lib-extra/slib/FrugalBuild 
b/source/lib-extra/slib/FrugalBuild
index 022a2e1..b08b297 100644
--- a/source/lib-extra/slib/FrugalBuild
+++ b/source/lib-extra/slib/FrugalBuild
@@ -3,19 +3,40 @@

pkgname=slib
pkgver=3b3
-pkgrel=1
-pkgdesc="platform independent library for scheme"
+pkgrel=2
+pkgdesc="A library providing functions for Scheme implementations"
url="http://swissnet.ai.mit.edu/~jaffer/SLIB.html";
-depends=('guile')
+depends=('guile' 'texinfo')
groups=('lib-extra')
-up2date="$pkgver"
-source=("http://groups.csail.mit.edu/mac/ftpdir/scm/$pkgname-$pkgver.zip";)
+up2date="Flasttar http://groups.csail.mit.edu/mac/ftpdir/scm/";
+source=(http://groups.csail.mit.edu/mac/ftpdir/scm/${pkgname}-${pkgver}.tar.gz)
archs=('i686' 'x86_64')
-sha1sums=('5bfa35af2669137beac14e016181bbbfb0bbe67f')
+sha1sums=('d09c10370cd5a4b036385ce9e14c332af6894985')

build() {
Fcd $pkgname
-       Fmkdir /usr/share/guile/1.8/slib
-       cp *.scm *.init *.txt *.xyz $Fdestdir/usr/share/guile/1.8/slib/
+       sed -r -i "s,/usr/(local/)?lib/slib,/usr/share/slib,g" *.init || Fdie
+       Fmkdir /usr/share/{slib,info}
+       cp *.scm *.init *.xyz *.txt *.dat *.ps $Fdestdir/usr/share/slib || Fdie
+       Finstallrel 644 slib.info usr/share/info/
Fdocrel README FAQ COPYING
+       Fmkdir usr/bin
+
+        cat << _EOF > "$Fdestdir/usr/bin/slib"
+
+#!/bin/sh
+SCHEME_LIBRARY_PATH=/usr/share/slib/
+export SCHEME_LIBRARY_PATH
+VERSION=${pkgver}
+S48_VICINITY="/usr/share/scheme48/"
+export S48_VICINITY
+_EOF
+
+        cat slib.sh >> "$Fdestdir/usr/bin/slib" || Fdie
+        chmod 755 "$Fdestdir/usr/bin/slib" || Fdie
+
+        Fmanrel slib.1
+
+        Fmkdir usr/share/guile/site/
+        ln -s /usr/share/slib "$Fdestdir/usr/share/guile/site/" || Fdie
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to