1 # Maintainer: mrshpot <mrshpot at gmail dot com>
2 # Contributor: veox <box 55 [shift-two] mail [dot] ru>
5 _clname=cl-cairo2 # used in CL scope, not package scope
8 pkgdesc="A graphics library that provides Common Lisp bindings for the Cairo API."
10 url="http://cliki.net/cl-cairo2"
11 license=('custom') # Public Domain
12 provides=('cl-cairo2')
14 # TODO: replace this segment with 'common-lisp' when all provide it.
15 if pacman -Qq clisp-new-clx &>/dev/null; then
16 depends=('clisp-new-clx' 'cl-asdf'
17 'cl-metabang-bind' 'cl-colors' 'cl-trivial-garbage' 'cl-trivial-features' 'cl-cffi')
18 elif pacman -Qq clisp-gtk2 &>/dev/null; then
19 depends=('clisp-gtk2' 'cl-asdf'
20 'cl-metabang-bind' 'cl-colors' 'cl-trivial-garbage' 'cl-trivial-features' 'cl-cffi')
21 elif pacman -Qq sbcl &>/dev/null; then
23 'cl-metabang-bind' 'cl-colors' 'cl-trivial-garbage' 'cl-trivial-features' 'cl-cffi')
24 elif pacman -Qq clisp &>/dev/null; then
25 depends=('clisp' 'cl-asdf'
26 'cl-metabang-bind' 'cl-colors' 'cl-trivial-garbage' 'cl-trivial-features' 'cl-cffi')
27 elif pacman -Qq cmucl &>/dev/null; then
28 depends=('cmucl' 'cl-asdf'
29 'cl-metabang-bind' 'cl-colors' 'cl-trivial-garbage' 'cl-trivial-features' 'cl-cffi')
32 'cl-metabang-bind' 'cl-colors' 'cl-trivial-garbage' 'cl-trivial-features' 'cl-cffi')
37 install=cl-cairo2.install
42 _gitroot="git://github.com/tpapp/cl-cairo2.git"
52 You are about to build a package using a snapshot from a repository.
53 The resulting package may be unusable or pose a security risk, since
54 the install script does not check source file hashes. Do not continue
55 if this is undesirable.
59 for _dir in src tutorial; do
60 install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}/${_dir}
62 for _dir in gtk2 quartz win32 xlib; do
63 install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}/src/${_dir}
65 install -d ${pkgdir}/usr/share/common-lisp/systems
66 install -d ${pkgdir}/usr/share/licenses/${pkgname}
70 msg "Connecting to GIT server...."
72 if [ -d $_gitname ] ; then
73 cd $_gitname && git pull origin
74 msg "The local files are updated."
76 git clone $_gitroot $_gitname
78 cd "$srcdir/$_gitname"
80 msg "GIT checkout done or server timeout"
83 for _dir in gtk2 quartz win32 xlib; do
84 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname}/src/${_dir} \
87 msg "done installing etc"
88 for _dir in src tutorial; do
89 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname}/${_dir}/ \
92 msg "done installing source"
93 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname} \
95 msg "done installing asd"
97 cd ${pkgdir}/usr/share/common-lisp/systems
98 ln -s ../source/${_clname}/${_clname}.asd .