wok-6.x view slib/receipt @ rev 17702

Add dosbox-mb (thanks vincent perry)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 28 00:30:06 2015 +0100 (2015-02-28)
parents 7a526dcd4932
children 9e01bc6321ea
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 $1/usr/share/guile/1.8/ice-9/slib.scm
43 printf "Creating catalog"
44 chroot "$1/" guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))"
45 status
46 }
48 post_remove()
49 {
50 rm -f $1/usr/share/guile/1.8/slibcat
51 }