wok-current annotate slib/receipt @ rev 25024
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 18 20:10:17 2022 +0000 (2022-05-18) |
parents | 67da1e63fb3d |
children |
rev | line source |
---|---|
pascal@14379 | 1 # SliTaz package receipt. |
pascal@14379 | 2 |
pascal@14379 | 3 PACKAGE="slib" |
Hans-G?nter@23648 | 4 VERSION="3b6" |
pascal@14379 | 5 CATEGORY="office" |
Hans-G?nter@21915 | 6 SHORT_DESC="Portable library for the programming language Scheme." |
pascal@14379 | 7 MAINTAINER="domcox@slitaz.org" |
al@14742 | 8 LICENSE="PublicDomain" |
Hans-G?nter@23648 | 9 WEB_SITE="https://people.csail.mit.edu/jaffer/SLIB" |
Hans-G?nter@21915 | 10 |
pascal@14379 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23648 | 12 WGET_URL="https://groups.csail.mit.edu/mac/ftpdir/scm/$TARBALL" |
pascal@14379 | 13 |
pascal@14379 | 14 DEPENDS="guile" |
pascal@14379 | 15 BUILD_DEPENDS="guile texinfo" |
pascal@14379 | 16 |
pascal@24462 | 17 # What is the latest version available today? |
pascal@24462 | 18 current_version() |
pascal@24462 | 19 { |
pascal@24462 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24462 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24462 | 22 } |
pascal@24462 | 23 |
pascal@14379 | 24 # Rules to configure and make the package. |
pascal@14379 | 25 compile_rules() |
pascal@14379 | 26 { |
Hans-G?nter@21915 | 27 ./configure --prefix=/usr && |
Hans-G?nter@21915 | 28 |
pascal@14379 | 29 sed -i 's/SCHEME = scm/SCHEME = guile/' Makefile |
Hans-G?nter@21915 | 30 |
pascal@14379 | 31 echo "# install-script" |
pascal@14379 | 32 make install-script |
Hans-G?nter@21915 | 33 |
pascal@14379 | 34 echo "# install files" |
pascal@14379 | 35 mkdir -p $install/usr/share/slib |
Hans-G?nter@23648 | 36 install -m644 *.scm *.init *.xyz *.txt *.dat *.ps \ |
Hans-G?nter@23648 | 37 $install/usr/share/slib |
Hans-G?nter@21915 | 38 |
pascal@14379 | 39 echo "# creating SLIB initialization file" |
pascal@14379 | 40 mkdir -p $install/usr/share/guile/1.8 |
pascal@14379 | 41 ln -s $install/usr/share/slib $install/usr/share/guile/site |
pascal@14379 | 42 } |
pascal@14379 | 43 |
pascal@14379 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14379 | 45 genpkg_rules() |
pascal@14379 | 46 { |
Hans-G?nter@23648 | 47 cp -a $install/* $fs |
Hans-G?nter@23648 | 48 rm -f $fs/usr/share/guile/site |
Hans-G?nter@23648 | 49 ln -s ../slib $fs/usr/share/guile/site |
pascal@14379 | 50 } |
pascal@14379 | 51 |
pascal@14379 | 52 post_install() |
pascal@14379 | 53 { |
pascal@14379 | 54 # add path to initialization file |
pascal@14379 | 55 sed -i s'#(load-from.*#(load-from-path "/usr/share/slib/guile.init")#' \ |
pascal@18730 | 56 "$1/usr/share/guile/1.8/ice-9/slib.scm" |
pascal@14379 | 57 printf "Creating catalog" |
pascal@17552 | 58 chroot "$1/" guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))" |
pascal@14379 | 59 status |
pascal@14379 | 60 } |
pascal@14379 | 61 |
pascal@14379 | 62 post_remove() |
pascal@14379 | 63 { |
pascal@18730 | 64 rm -f "$1/usr/share/guile/1.8/slibcat" |
pascal@14379 | 65 } |