#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-ytalk VERSION=3.3.0 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf ytalk-$VERSION tar xjf $CWD/ytalk-$VERSION.tar.bz2 cd ytalk-$VERSION ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --with-x=no \ $TARGET make || exit make DESTDIR=$PKG install mkdir -p $PKG/usr/doc/ytalk-$VERSION cp -a C* A* INSTALL README $PKG/usr/doc/ytalk-$VERSION chmod 644 $PKG/usr/doc/ytalk-$VERSION/* chown root:root $PKG/usr/doc/ytalk-$VERSION/* gzip -9 $PKG/usr/man/man?/* ( 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 ) mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/ytalk-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/ytalk.build.log