From cf3ef3fa7b7c6711c616d19a7f42bcd7e7894a42 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 14 Oct 2010 18:57:55 +0700 Subject: [PATCH] make the no-x11 version optional, off by default --- e/emacs/emacs.SlackBuild | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/e/emacs/emacs.SlackBuild b/e/emacs/emacs.SlackBuild index 8b6052e7..95b800a7 100755 --- a/e/emacs/emacs.SlackBuild +++ b/e/emacs/emacs.SlackBuild @@ -27,6 +27,8 @@ # Modified by Patrick Volkerding # Modified by Gwenhael Le Moine +ONLY_X11=1 + PRGNAM=emacs BRANCH=trunk VERSION=${VERSION:-${BRANCH}_$(date +"%Y.%m.%d_%H.%M")} @@ -119,6 +121,7 @@ EOF chmod +x $PKG/usr/bin/emacs ) +if [ $ONLY_X11 == 0 ] ; then # Also add a version of the binary that is not linked to X11: cd $TMP rm -rf $PRGNAM-$VERSION @@ -161,6 +164,7 @@ make $NUMJOBS || make || exit 1 cat src/emacs > $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11 chown root:root $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11 chmod 1755 $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11 +fi # I don't care for broken permissions. chmod 755 $PKG/var/games/emacs