#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-cscope VERSION=15.7a ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf cscope-$VERSION tar xf $CWD/cscope-$VERSION.tar.bz2 cd cscope-$VERSION chown -R root.root . ./configure \ --prefix=/usr \ --mandir=/usr/man \ --infodir=/usr/info \ --build=$TARGET make || exit 1 make install DESTDIR=$PKG chown -R root.bin $PKG/usr/bin gzip -9 $PKG/usr/man/man?/*.? mkdir -p $PKG/usr/doc/cscope-$VERSION cp -a A* C* I* N* R* $PKG/usr/doc/cscope-$VERSION ( cd $PKG find . | xargs file | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded ) mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/cscope-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/cscope.build.log