1 # Maintainer: mrshpot <mrshpot at gmail dot com>
2 # Contributor: veox <box 55 [shift-two] mail [dot] ru>
5 _clname=cl-opengl # used in CL scope, not package scope
8 pkgdesc="A set of CFFI bindings for Common Lisp to the OpenGL, GLU and GLUT APIs"
10 url="http://common-lisp.net/project/cl-opengl/"
12 provides=('cl-opengl')
13 conflicts=('cl-opengl-darcs')
14 replaces=('cl-opengl-darcs')
16 # TODO: replace this segment with 'common-lisp' when all provide it.
17 if pacman -Qq clisp-new-clx &>/dev/null; then
18 depends=('clisp-new-clx' 'cl-asdf' 'cl-alexandria' 'cl-babel' 'cl-cffi' 'cl-trivial-features')
19 elif pacman -Qq clisp-gtk2 &>/dev/null; then
20 depends=('clisp-gtk2' 'cl-asdf' 'cl-alexandria' 'cl-babel' 'cl-cffi' 'cl-trivial-features')
21 elif pacman -Qq sbcl &>/dev/null; then
22 depends=('sbcl' 'cl-alexandria' 'cl-babel' 'cl-cffi' 'cl-trivial-features')
23 elif pacman -Qq clisp &>/dev/null; then
24 depends=('clisp' 'cl-asdf' 'cl-alexandria' 'cl-babel' 'cl-cffi' 'cl-trivial-features')
25 elif pacman -Qq cmucl &>/dev/null; then
26 depends=('cmucl' 'cl-asdf' 'cl-alexandria' 'cl-babel' 'cl-cffi' 'cl-trivial-features')
28 depends=('sbcl' 'cl-alexandria' 'cl-babel' 'cl-cffi' 'cl-trivial-features')
32 install=cl-opengl.install
38 _gitroot="git://github.com/3b/cl-opengl.git"
47 You are building a package using a snapshot from a repository. The
48 resulting package may be unusable or pose a security risk, since
49 the install script does not check source file hashes. Do not continue
50 if this is undesirable.
54 install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}/examples
55 install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}/gl
56 install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}/glu
57 install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}/glut
58 install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}/spec
59 install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}/tools
60 install -d ${pkgdir}/usr/share/common-lisp/systems
61 install -d ${pkgdir}/usr/share/licenses/${pkgname}
65 msg "Connecting to GIT server...."
67 if [ -d $_gitname ] ; then
68 cd $_gitname && git pull origin
69 msg "The local files are updated."
71 git clone $_gitroot $_gitname
73 cd "$srcdir/$_gitname"
75 msg "GIT checkout done or server timeout"
77 # cd ${srcdir}/${_clname}
78 cp -r examples ${pkgdir}/usr/share/common-lisp/source/${_clname}/
79 for _dir in gl glu glut spec tools; do
80 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname}/${_dir} \
84 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname} \
86 install -m 644 -t ${pkgdir}/usr/share/licenses/${pkgname} \
89 cd ${pkgdir}/usr/share/common-lisp/systems
90 for _asd in cl-glu cl-glu-examples cl-glut cl-opengl; do
91 ln -s ../source/${_clname}/${_asd}.asd .