summaryrefslogtreecommitdiffstats
path: root/slib/Pkgfile
blob: deac3eecba3f428a7ac3a1a52b00f7cde73f4788 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Description: portable library for the Scheme programming language
# URL: http://groups.csail.mit.edu/
# Maintainer: NuTyX core team 
# Packager: thierryn1 at hispeed dot ch

name=slib
version=3b2
release=1
source=( http://groups.csail.mit.edu/mac/ftpdir/scm/OLD/$name-$version.tar.gz )

build() {
	cd $name
	sed -r -i "s,/usr/(local/)?lib/slib,/usr/share/slib,g" *.init
        install -m755 -d $PKG/usr/{bin,share/{slib,man/man1,info,guile/site}}
	install -m644 *.scm *.init *.xyz *.txt *.dat *.ps $PKG/usr/share/slib
	install -m644 slib.info $PKG/usr/share/info/
	cat > $PKG/usr/bin/slib << EOF
#!/bin/sh
SCHEME_LIBRARY_PATH=/usr/share/slib/
export SCHEME_LIBRARY_PATH
VERSION=${pkgver}
S48_VICINITY="/usr/share/scheme48/"
export S48_VICINITY
EOF
	cat slib.sh >> $PKG/usr/bin/slib
	chmod 755 $PKG/usr/bin/slib
	install -m644 slib.1 $PKG/usr/share/man/man1/
        ln -s /usr/share/slib $PKG/usr/share/guile/site/
}