#!/bin/sh # Build Mutt for Slackware (by volkerdi@slackware.com) CWD=`pwd` VERSION=1.4.2.1i ARCH=i486 BUILD=1 if [ $ARCH = i486 ]; then AOPTS="-march=i486 -mcpu=i686" fi PKG=/tmp/package-mutt rm -rf $PKG mkdir $PKG cd /tmp rm -rf mutt-1.4.2 tar xzvf $CWD/mutt-$VERSION.tar.gz cd `basename mutt-$VERSION i` chown -R root.root . CFLAGS="-O2 $AOPTS" ./configure \ --prefix=/usr \ --sysconfdir=/etc/mutt \ --with-mailpath=/var/spool/mail \ --enable-pop \ --enable-imap \ --with-ssl \ --enable-locales-fix \ --without-wc-funcs \ $ARCH-slackware-linux make make install DESTDIR=$PKG ( 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 ) chown -R root.bin $PKG/usr/bin gzip -9 $PKG/usr/man/man?/* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh # Don't mv the mutt docs directory, because mutt uses 'em. # Make a link instead. ( cd $PKG/usr/doc ; rm -rf mutt-$VERSION ; ln -sf mutt mutt-$VERSION ) mv $PKG/etc/mutt/Muttrc $PKG/etc/mutt/Muttrc.new cd $PKG makepkg -l y -c n ../mutt-$VERSION-$ARCH-$BUILD.tgz