#!/bin/sh # Build Mutt for Slackware (by volkerdi@slackware.com) CWD=`pwd` TMP=/tmp PKG=$TMP/package-mutt VERSION=1.4.2.2 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf mutt-$VERSION tar xjf $CWD/mutt-${VERSION}i.tar.bz2 cd mutt-$VERSION 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 || exit make || exit 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}i-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/mutt.build.log