1 # Maintainer: mrshpot <mrshpot at gmail dot com>
2 # Contributor: veox <box 55 [shift-two] mail [dot] ru>
5 _clname=lift # used in CL scope, not package scope
8 pkgdesc="Lisp Framework For Testing"
10 url="http://common-lisp.net/project/lift/"
11 license=('custom') # Public Domain
13 conflicts=('cl-lift-darcs')
15 # TODO: replace this segment with 'common-lisp' when all provide it.
16 if pacman -Qq clisp-new-clx &>/dev/null; then
17 depends=('clisp-new-clx' 'cl-asdf')
18 elif pacman -Qq clisp-gtk2 &>/dev/null; then
19 depends=('clisp-gtk2' 'cl-asdf')
20 elif pacman -Qq sbcl &>/dev/null; then
22 elif pacman -Qq clisp &>/dev/null; then
23 depends=('clisp' 'cl-asdf')
24 elif pacman -Qq cmucl &>/dev/null; then
25 depends=('cmucl' 'cl-asdf')
31 install=cl-lift.install
36 _gitroot="git://github.com/gwkkwg/lift"
46 You are about to build a package using a snapshot from a repository.
47 The resulting package may be unusable or pose a security risk, since
48 the install script does not check source file hashes. Do not continue
49 if this is undesirable.
53 for _dir in compare data dev docs examples test timeout; do
54 install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}/${_dir}
56 install -d ${pkgdir}/usr/share/common-lisp/systems
57 install -d ${pkgdir}/usr/share/licenses/${pkgname}
61 msg "Connecting to GIT server...."
63 if [ -d $_gitname ] ; then
64 cd $_gitname && git pull origin
65 msg "The local files are updated."
67 git clone $_gitroot $_gitname
69 cd "$srcdir/$_gitname"
71 msg "GIT checkout done or server timeout"
73 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname}/ \
75 for _dir in compare data dev docs examples test timeout; do
76 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname}/${_dir}/ \
79 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname} \
81 install -m 644 -t ${pkgdir}/usr/share/licenses/${pkgname} \
82 ${srcdir}/${_clname}/COPYING
84 cd ${pkgdir}/usr/share/common-lisp/systems
85 ln -s ../source/${_clname}/${_clname}.asd .
86 ln -s ../source/${_clname}/${_clname}-documentation.asd .
87 ln -s ../source/${_clname}/${_clname}-test.asd .