updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / cl-gtk2 / PKGBUILD
blobf94e506056a0f120719332b8c760121a9ddfa42c
1 # Maintainer:  mrshpot <mrshpot at gmail dot com>
2 # Contributor:  veox <box 55 [shift-two] mail [dot] ru>
4 pkgname=cl-gtk2
5 _clname=cl-gtk2   # used in CL scope, not package scope
6 pkgver=0.1.1
7 pkgrel=1
8 pkgdesc="GTK+ 2 bindings for Common Lisp"
9 arch=('i686' 'x86_64')
10 url="http://common-lisp.net/project/cl-gtk2/"
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 '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
23     depends=('sbcl'
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')
34 else
35     depends=('sbcl'
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')
43 options=(docs)
46 build() {
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
55         
56         
57         for _dir in glib pango gdk gtk gtk-glext cairo; do
58           install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}/${_dir}
59         done
60         
61         
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
68         done
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 .
79         done