wok-next view slib/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | 9e01bc6321ea |
children |
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="devel@slitaz.org"
8 LICENSE="PublicDomain"
9 WEB_SITE="http://people.csail.mit.edu/jaffer/SLIB"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://groups.csail.mit.edu/mac/ftpdir/scm/$TARBALL"
14 BUILD_DEPENDS="guile texinfo"
16 compile_rules() {
17 ./configure \
18 --prefix=/usr &&
19 sed -i 's/SCHEME = scm/SCHEME = guile/' Makefile
20 echo "# install-script"
21 make install-script
22 echo "# install files"
23 mkdir -p $install/usr/share/slib
24 install -m644 *.scm *.init *.xyz *.txt *.dat *.ps $install/usr/share/slib
25 echo "# creating SLIB initialization file"
26 mkdir -p $install/usr/share/guile/1.8
27 ln -s $install/usr/share/slib $install/usr/share/guile/site
28 }
30 genpkg_rules() {
31 cp -a $install/* $fs
32 DEPENDS="guile"
33 }
35 post_install() {
36 # add path to initialization file
37 sed -i s'#(load-from.*#(load-from-path "/usr/share/slib/guile.init")#' \
38 "$1/usr/share/guile/1.8/ice-9/slib.scm"
40 action "Creating catalog"
41 chroot "$1/" guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))"
42 status
43 }
45 post_remove() {
46 rm -f "$1/usr/share/guile/1.8/slibcat"
47 }