updated on Mon Jan 9 08:00:21 UTC 2012
[aur-mirror.git] / cl-ppcre-sbcl / cl-ppcre.install
blob4e20fed55025ac56cd6f1a68d5251a08e5c48963
1 _pkgname=cl-ppcre
2 _compile_log=n
3 _lisp=('sbcl')
5 _compile() {
6     sbcl --noinform --no-sysinit --no-userinit \
7         --eval "(require :asdf)" \
8         --eval "(pushnew #p\"/usr/share/common-lisp/systems/\" asdf:*central-registry* :test #'equal)" \
9         --eval "(asdf:operate 'asdf:compile-op '${_pkgname})" \
10         --eval "(quit)" &> ${_compile_log_file} || return 1
13 post_install() {
14         echo "---> Compiling lisp files <---"
15         if [ $_compile_log = 'y' ]; then
16             _compile_log_file=/tmp/${_pkgname}_sbcl.log
17         else
18             _compile_log_file=/dev/null
19         fi
20         _compile
21         echo "---> Done compiling lisp files <---"
23     cat << EOM
25     To load this library, run the following lines
26              (require :asdf)
27              (require :cl-ppcre)
29    REMEMBER, that this build is only for SBCL
30 EOM
33 post_upgrade() {
34     post_install
37 pre_remove() {
38     rm -f /usr/share/common-lisp/source/${_pkgname}/{*.fas,*.fasl,*.lib,*.x86f}
41 pre_upgrade() {
42     pre_remove
45 # End of file