#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-man VERSION=1.6f ARCH=alpha BUILD=1 rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf man-$VERSION tar xjf $CWD/man-$VERSION.tar.bz2 cd man-$VERSION chown -R root.root . ./configure +lang all +traditional -confdir /usr/lib make || exit make install PREFIX=$PKG mv $PKG/usr/lib/man.conf $PKG/usr/lib/man.conf.new ( 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 ) ( cd $PKG/usr/man find . -name "*.?" -exec gzip -9 {} \; # hack to remove empty man directories: ( find . -type d | xargs rmdir ) 2> /dev/null ( find . -type d | xargs rmdir ) 2> /dev/null ) chown -R root.bin $PKG/usr/bin $PKG/usr/sbin mkdir -p $PKG/usr/doc/man-$VERSION cp -a COPYING INSTALL LSM README TODO $PKG/usr/doc/man-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh cd $PKG makepkg -l y -c n /tmp/man-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/man.build.log