wok view slib/receipt @ rev 15978
libgcrypt: add to ARM arch
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Feb 28 22:12:49 2014 +0100 (2014-02-28) |
parents | 33e84bccec26 |
children | dfef8de3d270 |
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="PublicDomain"
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 }