wok-next diff slib/receipt @ rev 14558
thunderbird-langpack-pt_BR: Up to 17.0.6esr
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu May 23 10:10:40 2013 +0200 (2013-05-23) |
parents | |
children | 7a526dcd4932 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/slib/receipt Thu May 23 10:10:40 2013 +0200 1.3 @@ -0,0 +1,51 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="slib" 1.7 +VERSION="3b3" 1.8 +CATEGORY="office" 1.9 +SHORT_DESC="portable library for the programming language Scheme" 1.10 +MAINTAINER="domcox@slitaz.org" 1.11 +LICENSE="Public Domain" 1.12 +WEB_SITE="http://people.csail.mit.edu/jaffer/SLIB" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WGET_URL="http://groups.csail.mit.edu/mac/ftpdir/scm/$TARBALL" 1.15 + 1.16 +DEPENDS="guile" 1.17 +BUILD_DEPENDS="guile texinfo" 1.18 + 1.19 +# Rules to configure and make the package. 1.20 +compile_rules() 1.21 +{ 1.22 + ./configure \ 1.23 + --prefix=/usr && 1.24 + sed -i 's/SCHEME = scm/SCHEME = guile/' Makefile 1.25 + echo "# install-script" 1.26 + make install-script 1.27 + echo "# install files" 1.28 + mkdir -p $install/usr/share/slib 1.29 + install -m644 *.scm *.init *.xyz *.txt *.dat *.ps $install/usr/share/slib 1.30 + echo "# creating SLIB initialization file" 1.31 + mkdir -p $install/usr/share/guile/1.8 1.32 + ln -s $install/usr/share/slib $install/usr/share/guile/site 1.33 +} 1.34 + 1.35 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.36 +genpkg_rules() 1.37 +{ 1.38 + cp -a $install/* $fs 1.39 +} 1.40 + 1.41 +post_install() 1.42 +{ 1.43 + # add path to initialization file 1.44 + sed -i s'#(load-from.*#(load-from-path "/usr/share/slib/guile.init")#' \ 1.45 + /usr/share/guile/1.8/ice-9/slib.scm 1.46 + printf "Creating catalog" 1.47 + guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))" 1.48 + status 1.49 +} 1.50 + 1.51 +post_remove() 1.52 +{ 1.53 + rm -f /usr/share/guile/1.8/slibcat 1.54 +}