updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / cl-lispbuilder-sdl / PKGBUILD
blob5ed9a2a4f0d90d02d6618266c606d74b5cb41895
1 # Maintainer:  Taras Shpot <mrshpot at gmail dot com>
3 pkgname=cl-lispbuilder-sdl
4 _clname=lispbuilder-sdl
5 pkgver=0.9.8.1
6 pkgrel=3
7 pkgdesc="SDL game and multimedia library for Common Lisp"
8 arch=('i686' 'x86_64')
9 url="http://code.google.com/p/lispbuilder/"
10 license=('MIT')
12 depends=('common-lisp' 'cl-asdf' 'sdl' 'cl-trivial-garbage')
13 optdepends=('cl-vectors: vector graphics'
14   'cl-zpb-ttf: required for cl-vectors support'
15   'cl-vecto: vector graphics')
17 install=cl-lispbuilder-sdl.install
18 source=('http://lispbuilder.googlecode.com/files/lispbuilder-sdl-0.9.8.1.tgz')
19 md5sums=('32380fbc7622ada4082d25baa5c95fe2')
21 build() {
22     install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}
23     install -d ${pkgdir}/usr/share/common-lisp/systems
25     cd ${srcdir}/${_clname}
26         rm -rf trivial-garbage.asd trivial-garbage/
27         
28         make || exit 1
30         cp -r * ${pkgdir}/usr/share/common-lisp/source/${_clname}
31         find ${pkgdir}/usr/share/common-lisp/source/${_clname} -type f -print0 | xargs -0 chmod 644 || return 1
32         find ${pkgdir}/usr/share/common-lisp/source/${_clname} -type d -print0 | xargs -0 chmod 755 || return 1
33         chmod +x ${pkgdir}/usr/share/common-lisp/source/${_clname}/bin/lib${_clname}-glue.so
34         ln -s ${pkgdir}/usr/share/common-lisp/source/${_clname}/bin/lib${_clname}-glue.so ${pkgdir}/usr/share/common-lisp/source/${_clname}/bin/${_clname}-glue.so
35         
36     cd ${pkgdir}/usr/share/common-lisp/systems
37     ln -s ../source/${_clname}/${_clname}.asd .
38     ln -s ../source/${_clname}/${_clname}-examples.asd .
39     ln -s ../source/${_clname}/${_clname}-cl-vectors.asd .
40     ln -s ../source/${_clname}/${_clname}-cl-vectors-examples.asd .
41         ln -s ../source/${_clname}/${_clname}-vecto.asd .
42     ln -s ../source/${_clname}/${_clname}-vecto-examples.asd .
45 # vim:set ts=2 sw=4 et nospell: