#
# subprototype for emacs-lisp package
#
PROGNAME="Emacs lisp source files"
DESC="\
emacs-lisp (Emacs Lisp source files) \n\
\n\
This package contains source code for the parts of Emacs that are \n\
written in Emacs Lisp. *.el files are Emacs Lisp source, and the \n\
corresponding *.elc files are byte-compiled versions. \n\
\n\
The emacs package contains all of the *.el files that emacs \n\
requires to run, but these are probably good to have if you've got \n\
the space on your hard drive."
SUBPKGNAME=emacs-lisp-$VERSION-s390-$BUILD
TAG=OPT
subinstall() {
echo "nothing to install for emacs-lithp"
}
subspecial() {
mkdir -p $SUBPKG/usr/share/emacs/$VERSION/lisp
cp -a $TMP/em/usr/share/emacs/$VERSION/lisp/* \
$SUBPKG/usr/share/emacs/$VERSION/lisp
mkdir -p $SUBPKG/usr/share/emacs/$VERSION/site-lisp
cp -a $TMP/em/usr/share/emacs/$VERSION/site-lisp/* \
$SUBPKG/usr/share/emacs/$VERSION/site-lisp
find $SUBPKG/usr/share/emacs/$VERSION/lisp -type f -exec chmod 644 {} \;
find $SUBPKG/usr/share/emacs/$VERSION/lisp -type d -exec chmod 755 {} \;
chown -R root.root $SUBPKG/*
chmod 644 $SUBPKG/usr/share/emacs/$VERSION/lisp/subdirs.el
# we only want the .el files
find $SUBPKG/usr/share/emacs -name "*.elc" -exec rm -f {} \;
find $SUBPKG/usr/share/emacs -name "*.xpm" -exec rm -f {} \;
find $SUBPKG/usr/share/emacs -name "*.pbm" -exec rm -f {} \;
( cd $SUBPKG/usr/share/emacs/$VERSION/lisp
rm -rf README COPYING forms-d2.dat
)
( cd $SUBPKG/usr/share/emacs/$VERSION/lisp/term
rm -rf README
)
mkdir -p $SUBPKG/usr/share/emacs/site-lisp
cat << EOF >> $SUBPKG/usr/share/emacs/site-lisp/subdirs.el
(if (fboundp 'normal-top-level-add-subdirs-to-load-path)
(normal-top-level-add-subdirs-to-load-path))
EOF
cd $SUBCTL
cat $CWD/slack-desc.emacs-lisp > slack-desc
}