updated on Tue Jan 10 00:10:07 UTC 2012
[aur-mirror.git] / cl-xmls / PKGBUILD
blob5e46b1b966046374f15f0e2146eff5e2fc77faeb
1 # Maintainer:  veox <box 55 [shift-two] mail [dot] ru>
3 pkgname=cl-xmls
4 _simplepkgname=xmls
5 pkgver=1.2
6 pkgrel=1
7 pkgdesc="Simple XML parser for Common Lisp, mapping from XML to S-expressions and back"
8 arch=('i686' 'x86_64')
9 url="http://common-lisp.net/project/xmls/"
10 license=('BSD')
12 # TODO: replace this segment with 'common-lisp' when all provide it.
13 if pacman -Qq clisp-new-clx &>/dev/null; then
14     depends=('clisp-new-clx' 'cl-asdf')
15 elif pacman -Qq clisp-gtk2 &>/dev/null; then
16     depends=('clisp-gtk2' 'cl-asdf')
17 elif pacman -Qq sbcl &>/dev/null; then
18     depends=('sbcl')
19 elif pacman -Qq clisp &>/dev/null; then
20     depends=('clisp' 'cl-asdf')
21 elif pacman -Qq cmucl &>/dev/null; then
22     depends=('cmucl' 'cl-asdf')
23 else
24     depends=('sbcl')
27 install=cl-xmls.install
28 source=('http://common-lisp.net/project/xmls/xmls-1.2.tar.gz')
29 md5sums=('f67e68b05a75f47474868f92cd4d2b0a')
31 build() {
32     install -d ${pkgdir}/usr/share/common-lisp/source/${_simplepkgname}
33     install -d ${pkgdir}/usr/share/common-lisp/systems
34     install -d ${pkgdir}/usr/share/licenses/${_simplepkgname}
35     install -d ${pkgdir}/usr/share/doc/${pkgname}
37     cd ${srcdir}/${_simplepkgname}-${pkgver} || return 1
39     install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_simplepkgname} \
40         ${srcdir}/${_simplepkgname}-${pkgver}/*.lisp || return 1
41     install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_simplepkgname} \
42         ${srcdir}/${_simplepkgname}-${pkgver}/*.asd || return 1
43     install -m 644 -t ${pkgdir}/usr/share/licenses/${_simplepkgname} \
44         ${srcdir}/${_simplepkgname}-${pkgver}/COPYING || return 1
45     install -m 644 -t ${pkgdir}/usr/share/doc/${pkgname} \
46         ${srcdir}/${_simplepkgname}-${pkgver}/README.html || return 1
48     cd ${pkgdir}/usr/share/common-lisp/systems || return 1
49     ln -s ../source/${_simplepkgname}/${_simplepkgname}.asd . || return 1
52 # vim:set ts=2 sw=4 et nospell: