don't build emacs-no-x11

This commit is contained in:
Gwenhael Le Moine 2020-09-05 14:09:28 +02:00
parent a7f032fa95
commit 847e6be862
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -147,45 +147,45 @@ make install DESTDIR=$PKG || exit 1
) )
# Also add a version of the binary that is not linked to X11: # Also add a version of the binary that is not linked to X11:
cd $TMP # cd $TMP
rm -fr $TMP/$PKGNAM # rm -fr $TMP/$PKGNAM
mkdir -p $TMP/$PKGNAM # mkdir -p $TMP/$PKGNAM
cd $PKGNAM || exit 1 # cd $PKGNAM || exit 1
chown -R root:root . # chown -R root:root .
find . \ # find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ # \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \+ -o \ # -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ # \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+ # -exec chmod 644 {} \+
CFLAGS="$SLKCFLAGS" \ # CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ # CXXFLAGS="$SLKCFLAGS" \
$SRCDIR/configure \ # $SRCDIR/configure \
--prefix=/usr \ # --prefix=/usr \
--sysconfdir=/etc \ # --sysconfdir=/etc \
--localstatedir=/var \ # --localstatedir=/var \
--program-prefix="" \ # --program-prefix="" \
--program-suffix="" \ # --program-suffix="" \
--mandir=/usr/man \ # --mandir=/usr/man \
--infodir=/usr/info \ # --infodir=/usr/info \
--without-gconf \ # --without-gconf \
--without-gsettings \ # --without-gsettings \
--with-modules \ # --with-modules \
--with-x=no \ # --with-x=no \
--build=${ARCH}-slackware-linux || exit 1 # --build=${ARCH}-slackware-linux || exit 1
make $NUMJOBS || make || exit 1 # make $NUMJOBS || make || exit 1
# Install the non-x version: # # Install the non-x version:
cat src/emacs > $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11 # cat src/emacs > $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11
chown root:root $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 # chmod 1755 $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11
# Create unversioned symlinks for both versions of emacs: # Create unversioned symlinks for both versions of emacs:
( cd $PKG/usr/bin ( cd $PKG/usr/bin
ln -sf emacs-${EMACS_VERSION}-with-x11 emacs-with-x11 ln -sf emacs-${EMACS_VERSION}-with-x11 emacs-with-x11
ln -sf emacs-${EMACS_VERSION}-no-x11 emacs-no-x11 # ln -sf emacs-${EMACS_VERSION}-no-x11 emacs-no-x11
# Create a plain "emacs" symlink pointing to emacs-with-x11: # Create a plain "emacs" symlink pointing to emacs-with-x11:
ln -sf emacs-with-x11 emacs ln -sf emacs-with-x11 emacs
) )