1 # Maintainer: mrshpot <mrshpot at gmail dot com>
2 # Contributor: veox <box 55 [shift-two] mail [dot] ru>
5 _clname=cl-utilities # used in CL scope, not package scope
8 pkgdesc="A collection of semi-standard utilities for Common Lisp."
10 url="http://common-lisp.net/project/cl-utilities/"
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-utilities.install
29 source=("ftp://common-lisp.net/pub/project/${_clname}/${_clname}-${pkgver}.tar.gz")
30 md5sums=('c3a4ba38b627448d3ed40ce888048940')
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}
39 install -d ${pkgdir}/usr/share/doc/${pkgname}/
41 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname} \
42 ${srcdir}/${_clname}-${pkgver}/*.lisp
43 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname} \
44 ${srcdir}/${_clname}-${pkgver}/*.asd
46 install -m 644 -t ${pkgdir}/usr/share/doc/${pkgname}/ \
47 ${srcdir}/${_clname}-${pkgver}/doc/*
49 cd ${pkgdir}/usr/share/common-lisp/systems
50 ln -s ../source/${_clname}/${_clname}.asd .
52 # TODO: docs (SPEC/README)