1 # Maintainer: mrshpot <mrshpot at gmail dot com>
2 # Contributor: veox <box 55 [shift-two] mail [dot] ru>
5 _clname=cl-gtk2 # used in CL scope, not package scope
8 pkgdesc="GTK+ 2 bindings for Common Lisp"
10 url="http://common-lisp.net/project/cl-gtk2/"
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 'cl-cffi' 'cl-trivial-garbage' 'cl-iterate' 'cl-bordeaux-threads'
17 'cl-closer-mop' 'cl-opengl' 'cl-cairo2')
18 elif pacman -Qq clisp-gtk2 &>/dev/null; then
19 depends=('clisp-gtk2' 'cl-asdf'
20 'cl-cffi' 'cl-trivial-garbage' 'cl-iterate' 'cl-bordeaux-threads'
21 'cl-closer-mop' 'cl-opengl' 'cl-cairo2')
22 elif pacman -Qq sbcl &>/dev/null; then
24 'cl-cffi' 'cl-trivial-garbage' 'cl-iterate' 'cl-bordeaux-threads'
25 'cl-closer-mop' 'cl-opengl' 'cl-cairo2')
26 elif pacman -Qq clisp &>/dev/null; then
27 depends=('clisp' 'cl-asdf'
28 'cl-cffi' 'cl-trivial-garbage' 'cl-iterate' 'cl-bordeaux-threads'
29 'cl-closer-mop' 'cl-opengl' 'cl-cairo2')
30 elif pacman -Qq cmucl &>/dev/null; then
31 depends=('cmucl' 'cl-asdf'
32 'cl-cffi' 'cl-trivial-garbage' 'cl-iterate' 'cl-bordeaux-threads'
33 'cl-closer-mop' 'cl-opengl' 'cl-cairo2')
36 'cl-cffi' 'cl-trivial-garbage' 'cl-iterate' 'cl-bordeaux-threads'
37 'cl-closer-mop' 'cl-opengl' 'cl-cairo2')
40 install=cl-gtk2.install
41 source=("${url}/files/${_clname}-${pkgver}.tar.gz")
42 md5sums=('39f3e136b2e23a2525c16e043ed97681')
48 install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}
49 install -d ${pkgdir}/usr/share/common-lisp/systems
50 install -d ${pkgdir}/usr/share/licenses/${pkgname}
52 install -d ${pkgdir}/usr/share/doc/${_clname}
53 install -d ${pkgdir}/usr/share/doc/${_clname}/references
54 install -d ${pkgdir}/usr/share/doc/${_clname}/references/gobject.type-info
57 for _dir in glib pango gdk gtk gtk-glext cairo; do
58 install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}/${_dir}
62 for _dir in glib pango gdk gtk gtk-glext cairo; do
63 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname}/${_dir} \
64 ${srcdir}/${_clname}-${pkgver}/${_dir}/*.lisp
66 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname}/${_dir} \
67 ${srcdir}/${_clname}-${pkgver}/${_dir}/*.asd
70 install -m 644 -t ${pkgdir}/usr/share/doc/${_clname} \
71 ${srcdir}/${_clname}-${pkgver}/doc/*.html
73 install -m 644 -t ${pkgdir}/usr/share/doc/${_clname} \
74 ${srcdir}/${_clname}-${pkgver}/doc/*.lisp
76 cd ${pkgdir}/usr/share/common-lisp/systems
77 for _dir in glib pango gdk gtk gtk-glext cairo; do
78 ln -s ../source/${_clname}/${_dir}/*.asd .