#!/bin/sh # Build Mutt for Slackware (by volkerdi@slackware.com) CWD=`pwd` TMP=/tmp PKG=$TMP/package-mutt VERSION=1.4.2.1i ARCH=alpha BUILD=2 TARGET=$ARCH-alphaslack-linux mkdir $PKG ( cd $TMP rm -rf mutt-$VERSION tar xzf $CWD/mutt-$VERSION.tar.gz cd mutt-1.4.2.1 chown -R root.root . ./configure \ --prefix=/usr \ --sysconfdir=/etc/mutt \ --with-mailpath=/var/spool/mail \ --enable-pop \ --enable-imap \ --with-ssl \ --enable-locales-fix \ --without-wc-funcs \ $TARGET 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 $TMP/mutt-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/mutt.build.log