wok view slib/receipt @ rev 23756
gst-plugins-base-1.0: added build dependency automake
author | Hans-G?nter Theisgen |
---|---|
date | Sat May 02 16:58:52 2020 +0100 (2020-05-02) |
parents | 069f60e91eb0 |
children | 934055de50e2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slib"
4 VERSION="3b6"
5 CATEGORY="office"
6 SHORT_DESC="Portable library for the programming language Scheme."
7 MAINTAINER="domcox@slitaz.org"
8 LICENSE="PublicDomain"
9 WEB_SITE="https://people.csail.mit.edu/jaffer/SLIB"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://groups.csail.mit.edu/mac/ftpdir/scm/$TARBALL"
14 DEPENDS="guile"
15 BUILD_DEPENDS="guile texinfo"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure --prefix=/usr &&
22 sed -i 's/SCHEME = scm/SCHEME = guile/' Makefile
24 echo "# install-script"
25 make install-script
27 echo "# install files"
28 mkdir -p $install/usr/share/slib
29 install -m644 *.scm *.init *.xyz *.txt *.dat *.ps \
30 $install/usr/share/slib
32 echo "# creating SLIB initialization file"
33 mkdir -p $install/usr/share/guile/1.8
34 ln -s $install/usr/share/slib $install/usr/share/guile/site
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cp -a $install/* $fs
41 rm -f $fs/usr/share/guile/site
42 ln -s ../slib $fs/usr/share/guile/site
43 }
45 post_install()
46 {
47 # add path to initialization file
48 sed -i s'#(load-from.*#(load-from-path "/usr/share/slib/guile.init")#' \
49 "$1/usr/share/guile/1.8/ice-9/slib.scm"
50 printf "Creating catalog"
51 chroot "$1/" guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))"
52 status
53 }
55 post_remove()
56 {
57 rm -f "$1/usr/share/guile/1.8/slibcat"
58 }