actually I don't care for the -no-x11 version (and it doesn't compile right now so... out)

This commit is contained in:
Gwenhael Le Moine 2010-07-28 09:46:28 +07:00
parent 201a650b3d
commit 43b37c07e3

View file

@ -119,48 +119,48 @@ EOF
chmod +x $PKG/usr/bin/emacs chmod +x $PKG/usr/bin/emacs
) )
# 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 -rf $PRGNAM-$VERSION # rm -rf $PRGNAM-$VERSION
if [ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then # if [ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then
# FIXME: Hackish hack # # FIXME: Hackish hack
cp -R $REPOSITORIES/$PRGNAM/$BRANCH $TMP/$PRGNAM-$VERSION # cp -R $REPOSITORIES/$PRGNAM/$BRANCH $TMP/$PRGNAM-$VERSION
SRCDIR=$REPOSITORIES/$PRGNAM/$BRANCH # SRCDIR=$REPOSITORIES/$PRGNAM/$BRANCH
else # else
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* || exit 1 # tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* || exit 1
SRCDIR=. # SRCDIR=.
fi # fi
cd $PRGNAM-$VERSION || exit 1 # cd $PRGNAM-$VERSION || 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 \
--enable-static=no \ # --enable-static=no \
--enable-shared=yes \ # --enable-shared=yes \
--with-x=no \ # --with-x=no \
--without-gconf \ # --without-gconf \
--build=${ARCH}-slackware-linux # --build=${ARCH}-slackware-linux
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
# I don't care for broken permissions. # I don't care for broken permissions.
chmod 755 $PKG/var/games/emacs chmod 755 $PKG/var/games/emacs