updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cl-trivial-gray-streams / PKGBUILD
blob4fae668e56a99fb80355b4d7e607d38cb4b90877
1 # Maintainer:  veox <box 55 [shift-two] mail [dot] ru>
3 pkgname=cl-trivial-gray-streams
4 pkgver=20081102
5 _clname=trivial-gray-streams   # used in CL scope, not package scope
6 _reldate=2008-11-02
7 pkgrel=1
8 pkgdesc="Compatibility layer library for gray streams in Common Lisp"
9 arch=('i686' 'x86_64')
10 url="http://www.cliki.net/trivial-gray-streams"
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-trivial-gray-streams.install
29 source=("http://common-lisp.net/project/cl-plus-ssl/download/${_clname}-${_reldate}.tar.gz")
30 md5sums=('b833a416997315f5632209a4bd825ad8')
33 build() {
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 .