1 # Maintainer: mrshpot <mrshpot at gmail dot com>
2 # Contributor: veox <box 55 [shift-two] mail [dot] ru>
4 pkgname=cl-trivial-backtrace-git
5 _clname=trivial-backtrace # used in CL scope, not package scope
8 pkgdesc="A library to display backtraces portably across Common Lisp implementations"
10 url="http://common-lisp.net/project/trivial-backtrace/"
12 provides=('cl-trivial-backtrace')
14 # TODO: replace this segment with 'common-lisp' when all provide it.
15 if pacman -Qq clisp-new-clx &>/dev/null; then
16 depends=('clisp-new-clx' 'cl-asdf')
17 elif pacman -Qq clisp-gtk2 &>/dev/null; then
18 depends=('clisp-gtk2' 'cl-asdf')
19 elif pacman -Qq sbcl &>/dev/null; then
21 elif pacman -Qq clisp &>/dev/null; then
22 depends=('clisp' 'cl-asdf')
23 elif pacman -Qq cmucl &>/dev/null; then
24 depends=('cmucl' 'cl-asdf')
30 install=cl-trivial-backtrace.install
35 _gitroot="http://common-lisp.net/project/trivial-backtrace/trivial-backtrace.git"
36 _gitname="cl-trivial-backtrace"
45 You are about to build a package using a snapshot from a repository.
46 The resulting package may be unusable or pose a security risk, since
47 the install script does not check source file hashes. Do not continue
48 if this is undesirable.
52 install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}
53 install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}/dev
54 install -d ${pkgdir}/usr/share/common-lisp/source/${_clname}/test
55 install -d ${pkgdir}/usr/share/common-lisp/systems
56 install -d ${pkgdir}/usr/share/licenses/${pkgname}
60 msg "Connecting to GIT server...."
62 if [ -d $_gitname ] ; then
63 cd $_gitname && git pull origin
64 msg "The local files are updated."
66 git clone $_gitroot $_gitname
68 cd "$srcdir/$_gitname"
70 msg "GIT checkout done or server timeout"
72 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname}/dev \
74 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname}/test \
76 install -m 644 -t ${pkgdir}/usr/share/common-lisp/source/${_clname} \
79 cd ${pkgdir}/usr/share/common-lisp/systems
80 ln -s ../source/${_clname}/${_clname}.asd .