updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / cl-html-template / PKGBUILD
blob26a3ea99715ad095a37e29662294fee0fe3f61d3
1 # Contributor: James Feng Cao <jamesfengcao@yahoo.com>
3 pkgname=cl-html-template
4 pkgver=0.9.1
5 pkgrel=4
6 pkgdesc="html generator from template for Common Lisp"
7 arch=('i686' 'x86_64')
8 url="http://www.weitz.de/cl-html-template/"
9 license=('BSD')
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
17     depends=('sbcl')
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')
22 else
23     depends=('sbcl')
26 clpkgname=html-template
27 source=('http://weitz.de/files/html-template.tar.gz')
28 md5sums=('3ea05cb9d473d16616521a3087831f16')
30 build() {
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 .