wok view slib/receipt @ rev 21792

Fix ardour & bastet
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 05 12:45:42 2019 +0200 (2019-08-05)
parents 9e01bc6321ea
children 069f60e91eb0
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 rm -f $fs/usr/share/guile/site
37 ln -s ../slib $fs/usr/share/guile/site
38 }
40 post_install()
41 {
42 # add path to initialization file
43 sed -i s'#(load-from.*#(load-from-path "/usr/share/slib/guile.init")#' \
44 "$1/usr/share/guile/1.8/ice-9/slib.scm"
45 printf "Creating catalog"
46 chroot "$1/" guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))"
47 status
48 }
50 post_remove()
51 {
52 rm -f "$1/usr/share/guile/1.8/slibcat"
53 }