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