1 # Contributor: Alexander Vynnyk <cosmonaut (dot) ok (at) gmail (dot) com>
6 pkgdesc="Xlib for common lisp systems. SBCL build"
8 url="http://www.cliki.net/CLX"
10 depends=('xorg-server' 'sbcl')
11 makedepends=('texinfo')
13 source=(http://common-lisp.net/~abridgewater/dist/clx/${pkgorigname}-${pkgver}.tgz
15 md5sums=('d18b9fcc3a5d085e1a73c59a6ecc9413'
16 '74858379015567928f1eee186d9db1a4')
21 install -d ${pkgdir}/usr/share/common-lisp/systems
22 install -d ${pkgdir}/usr/share/common-lisp/source/${pkgorigname}/{debug,demo,test}
23 install -d ${pkgdir}/usr/share/licenses/${pkgorigname}
24 install -d ${pkgdir}/usr/share/info
25 cd ${pkgdir}/usr/share/common-lisp/source/${pkgorigname}
27 install -m 644 -t . ${srcdir}/${pkgorigname}-${pkgver}/*.lisp
28 install -m 644 -t debug ${srcdir}/${pkgorigname}-${pkgver}/debug/*.lisp
29 install -m 644 -t demo ${srcdir}/${pkgorigname}-${pkgver}/demo/*.lisp
30 install -m 644 -t test ${srcdir}/${pkgorigname}-${pkgver}/test/*.lisp
32 install -m 644 -t . ${srcdir}/${pkgorigname}-${pkgver}/${pkgorigname}.asd
33 cd ${pkgdir}/usr/share/common-lisp/systems
34 ln -s ../source/${pkgorigname}/${pkgorigname}.asd .
36 cd ${srcdir}/${pkgorigname}-${pkgver}/manual
37 makeinfo ${pkgorigname}.texinfo
38 install -m 644 ${pkgorigname}.info ${pkgdir}/usr/share/info
40 install -m 644 ${srcdir}/README.licensing ${pkgdir}/usr/share/licenses/${pkgorigname}
42 msg "---> Compiling lisp files <---"
44 sbcl --no-sysinit --no-userinit \
45 --eval '(require :asdf)' \
46 --eval "(pushnew #p\"${pkgdir}/usr/share/common-lisp/systems/\" asdf:*central-registry* :test #'equal)" \
47 --eval "(asdf:operate 'asdf:compile-op 'clx)" \
48 --eval '(quit)' || return 1
50 echo "---> Done compiling lisp files <---"