wok view slib/receipt @ rev 14701
monitorix: update /etc/monitorix.conf (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jun 07 18:28:08 2013 +0200 (2013-06-07) |
parents | |
children | 7a526dcd4932 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slib"
4 VERSION="3b3"
5 CATEGORY="office"
6 SHORT_DESC="portable library for the programming language Scheme"
7 MAINTAINER="domcox@slitaz.org"
8 LICENSE="Public Domain"
9 WEB_SITE="http://people.csail.mit.edu/jaffer/SLIB"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://groups.csail.mit.edu/mac/ftpdir/scm/$TARBALL"
13 DEPENDS="guile"
14 BUILD_DEPENDS="guile texinfo"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ./configure \
20 --prefix=/usr &&
21 sed -i 's/SCHEME = scm/SCHEME = guile/' Makefile
22 echo "# install-script"
23 make install-script
24 echo "# install files"
25 mkdir -p $install/usr/share/slib
26 install -m644 *.scm *.init *.xyz *.txt *.dat *.ps $install/usr/share/slib
27 echo "# creating SLIB initialization file"
28 mkdir -p $install/usr/share/guile/1.8
29 ln -s $install/usr/share/slib $install/usr/share/guile/site
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/* $fs
36 }
38 post_install()
39 {
40 # add path to initialization file
41 sed -i s'#(load-from.*#(load-from-path "/usr/share/slib/guile.init")#' \
42 /usr/share/guile/1.8/ice-9/slib.scm
43 printf "Creating catalog"
44 guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))"
45 status
46 }
48 post_remove()
49 {
50 rm -f /usr/share/guile/1.8/slibcat
51 }