1 # Maintainer: mrshpot <mrshpot at gmail dot com>
2 # Contributor: veox <box 55 [shift-two] mail [dot] ru>
5 _clname=iterate # used in CL scope, not package scope
8 pkgdesc="iterate is an iteration construct for Common Lisp."
10 url="http://common-lisp.net/project/iterate/"
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-iterate.install
29 source=("http://common-lisp.net/project/${_clname}/releases/${_clname}-${pkgver}.tar.gz")
30 md5sums=('f7b554e02c37ec3b786c6ba413b3a2e6')
36 install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}
37 install -d ${pkgdir}/usr/share/common-lisp/systems
38 install -d ${pkgdir}/usr/share/licenses/${pkgname}
40 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname} \
41 ${srcdir}/${_clname}-${pkgver}/*.lisp
42 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname} \
43 ${srcdir}/${_clname}-${pkgver}/*.asd
45 cd ${pkgdir}/usr/share/common-lisp/systems
46 ln -s ../source/${_clname}/${_clname}.asd .
48 # TODO: docs (SPEC/README)