updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / clx-sbcl / PKGBUILD
blob5f8657108c6a6ad5dba56052c761bf2dce06f59a
1 # Contributor: Alexander Vynnyk <cosmonaut (dot) ok (at) gmail (dot) com>
2 pkgname=clx-sbcl
3 pkgorigname=clx
4 pkgver=0.7.4
5 pkgrel=2
6 pkgdesc="Xlib for common lisp systems. SBCL build"
7 arch=('i686' 'x86_64')
8 url="http://www.cliki.net/CLX"
9 license=('custom')
10 depends=('xorg-server' 'sbcl')
11 makedepends=('texinfo')
12 install=clx.install
13 source=(http://common-lisp.net/~abridgewater/dist/clx/${pkgorigname}-${pkgver}.tgz
14         README.licensing)
15 md5sums=('d18b9fcc3a5d085e1a73c59a6ecc9413'
16          '74858379015567928f1eee186d9db1a4')
19 build() {
20     
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 <---"