updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / cl-iterate / PKGBUILD
blob115fde0c9e7da68d59e95e271a18d5a9f80280bc
1 # Maintainer:  mrshpot <mrshpot at gmail dot com>
2 # Contributor:  veox <box 55 [shift-two] mail [dot] ru>
4 pkgname=cl-iterate
5 _clname=iterate   # used in CL scope, not package scope
6 pkgver=1.4.3
7 pkgrel=1
8 pkgdesc="iterate is an iteration construct for Common Lisp."
9 arch=('i686' 'x86_64')
10 url="http://common-lisp.net/project/iterate/"
11 license=('BSD')
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
19     depends=('sbcl')
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')
24 else
25     depends=('sbcl')
28 install=cl-iterate.install
29 source=("http://common-lisp.net/project/${_clname}/releases/${_clname}-${pkgver}.tar.gz")
30 md5sums=('f7b554e02c37ec3b786c6ba413b3a2e6')
31 options=(docs)
34 build() {
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)