remove non-git emacs.SlackBuild
Signed-off-by: Gwenhael Le moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
parent
65f3124a79
commit
471a1c84e3
1 changed files with 0 additions and 112 deletions
|
@ -1,112 +0,0 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# variables
|
||||
TMP=/tmp
|
||||
CWD=$(pwd)
|
||||
|
||||
APP_NAME=emacs
|
||||
PKG=$TMP/package-$APP_NAME
|
||||
|
||||
VERSION=23.1
|
||||
|
||||
ARCH=x86_64
|
||||
BUILD=1cyco
|
||||
|
||||
#REPOSITORY=/home/cycojesus/projets/packages/repositories/emacs
|
||||
REPOSITORY=.
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS="-O2"
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$APP_NAME-$VERSION
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
tar xf $CWD/$APP_NAME-$VERSION.tar.?z*
|
||||
cd $APP_NAME-$VERSION
|
||||
# mkdir $APP_NAME-$VERSION
|
||||
# if [ ! -e $REPOSITORY ] ; then
|
||||
# mkdir -p $(dirname $REPOSITORY)
|
||||
# cd $(dirname $REPOSITORY)
|
||||
# #cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs ;
|
||||
# git clone http://git.sv.gnu.org/r/emacs.git
|
||||
# fi
|
||||
|
||||
# cd $REPOSITORY
|
||||
# make distclean
|
||||
|
||||
# git pull
|
||||
#cvs update
|
||||
|
||||
CFLAGS=$SLCKFLAGS \
|
||||
CXXFLAGS=$SLCKFLAGS \
|
||||
$REPOSITORY/configure \
|
||||
--prefix=$PREFIX \
|
||||
--infodir=$PREFIX/info \
|
||||
--mandir=$PREFIX/man \
|
||||
--libdir=$PREFIX/lib64 \
|
||||
--enable-font-backend \
|
||||
--with-x-toolkit=gtk \
|
||||
--with-freetype \
|
||||
--with-xft
|
||||
#make bootstrap
|
||||
|
||||
# cd ..
|
||||
make
|
||||
|
||||
# installation
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
rm $PKG/usr/bin/emacs
|
||||
cat <<EOF > $PKG$PREFIX/bin/emacs
|
||||
#!/bin/sh
|
||||
|
||||
XMODIFIERS= GTK_IM_MODULE= QT_IM_MODULE= $(basename $(ls $PKG$PREFIX/bin/emacs-$VERSION*)) \$@
|
||||
EOF
|
||||
chmod +x $PKG$PREFIX/bin/emacs
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
[ -d $PKG/usr/info ] && find $PKG/usr/info -type f -name "*" -exec gzip -9f {} \;
|
||||
gunzip $PKG/usr/info/dir.gz
|
||||
|
||||
# Strip binaries
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
|
||||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
$APP_NAME: $APP_NAME (Almighty editor)
|
||||
$APP_NAME:
|
||||
$APP_NAME: GNU Emacs is a version of Emacs, written by the author of the
|
||||
$APP_NAME: original (PDP-10) Emacs, Richard Stallman.
|
||||
$APP_NAME:
|
||||
$APP_NAME: The one and only.
|
||||
$APP_NAME:
|
||||
$APP_NAME:
|
||||
$APP_NAME:
|
||||
$APP_NAME:
|
||||
$APP_NAME: see /usr/doc/$APP_NAME-$VERSION$VERSION for more details
|
||||
EOF
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP_NAME-$VERSION-$ARCH-$BUILD.txz
|
Loading…
Reference in a new issue