#!/bin/sh # Set initial variables: CWD=`pwd` TMP=/tmp PKG=$TMP/package-texinfo VERSION=4.12 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf texinfo-$VERSION tar xjf $CWD/texinfo-$VERSION.tar.bz2 cd texinfo-$VERSION ./configure \ --prefix=/usr \ --mandir=/usr/man \ --infodir=/usr/info \ --build=$TARGET make || exit 1 make install DESTDIR=$PKG # Be sure this is "fresh" zcat $CWD/dir.gz > $PKG/usr/info/dir strip --strip-unneeded $PKG/usr/bin/* 2> /dev/null chown -R root.bin $PKG/usr/bin gzip -9 $PKG/usr/info/*info* gzip -9 $PKG/usr/man/man?/* mkdir -p $PKG/usr/doc/texinfo-$VERSION cp -a ABOUT-NLS AUTHORS COPYING INSTALL INTRODUCTION NEWS README TODO $PKG/usr/doc/texinfo-$VERSION chmod 644 $PKG/usr/doc/texinfo-$VERSION/* chown -R root.root $PKG/usr/doc/texinfo-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/texinfo-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/texinfo.build.log