1 # Contributor: James Feng Cao <jamesfengcao@yahoo.com>
3 pkgname=cl-html-template
6 pkgdesc="html generator from template for Common Lisp"
8 url="http://www.weitz.de/cl-html-template/"
11 # TODO: replace this segment with 'common-lisp' when all provide it.
12 if pacman -Qq clisp-new-clx &>/dev/null; then
13 depends=('clisp-new-clx' 'cl-asdf')
14 elif pacman -Qq clisp-gtk2 &>/dev/null; then
15 depends=('clisp-gtk2' 'cl-asdf')
16 elif pacman -Qq sbcl &>/dev/null; then
18 elif pacman -Qq clisp &>/dev/null; then
19 depends=('clisp' 'cl-asdf')
20 elif pacman -Qq cmucl &>/dev/null; then
21 depends=('cmucl' 'cl-asdf')
26 clpkgname=html-template
27 source=('http://weitz.de/files/html-template.tar.gz')
28 md5sums=('3ea05cb9d473d16616521a3087831f16')
31 install -d ${pkgdir}/usr/share/common-lisp/source/${clpkgname}
32 install -d ${pkgdir}/usr/share/common-lisp/systems
34 cd ${srcdir}/${clpkgname}-${pkgver}
36 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${clpkgname} \
37 ${srcdir}/${clpkgname}-${pkgver}/*.lisp
38 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${clpkgname} \
39 ${srcdir}/${clpkgname}-${pkgver}/*.asd
41 cd ${pkgdir}/usr/share/common-lisp/systems
42 ln -s ../source/${clpkgname}/${clpkgname}.asd .