1 # Maintainer: veox <box 55 [shift-two] mail [dot] ru>
3 pkgname=cl-trivial-gray-streams
5 _clname=trivial-gray-streams # used in CL scope, not package scope
8 pkgdesc="Compatibility layer library for gray streams in Common Lisp"
10 url="http://www.cliki.net/trivial-gray-streams"
13 # TODO: replace this segment with 'common-lisp' when all provide it.
14 if pacman -Qq clisp-new-clx &>/dev/null; then
15 depends=('clisp-new-clx' 'cl-asdf')
16 elif pacman -Qq clisp-gtk2 &>/dev/null; then
17 depends=('clisp-gtk2' 'cl-asdf')
18 elif pacman -Qq sbcl &>/dev/null; then
20 elif pacman -Qq clisp &>/dev/null; then
21 depends=('clisp' 'cl-asdf')
22 elif pacman -Qq cmucl &>/dev/null; then
23 depends=('cmucl' 'cl-asdf')
28 install=cl-trivial-gray-streams.install
29 source=("http://common-lisp.net/project/cl-plus-ssl/download/${_clname}-${_reldate}.tar.gz")
30 md5sums=('b833a416997315f5632209a4bd825ad8')
35 install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}
36 install -d ${pkgdir}/usr/share/common-lisp/systems
37 install -d ${pkgdir}/usr/share/licenses/${pkgname}
39 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname} \
40 ${srcdir}/${_clname}-${_reldate}/*.lisp
41 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname} \
42 ${srcdir}/${_clname}-${_reldate}/*.asd
44 install -m 644 -t ${pkgdir}/usr/share/licenses/${pkgname} \
45 ${srcdir}/${_clname}-${_reldate}/COPYING
47 cd ${pkgdir}/usr/share/common-lisp/systems
48 ln -s ../source/${_clname}/${_clname}.asd .