#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-strace VERSION=4.5.19 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf strace-$VERSION tar xjf $CWD/strace-$VERSION.tar.bz2 cd strace-$VERSION chown -R root.root . mkdir -p $PKG/usr/doc/strace-$VERSION cp -a COPYRIGHT CREDITS NEWS PORTING README README-freebsd README-linux README-sunos4 README-svr4 TODO $PKG/usr/doc/strace-$VERSION chmod 644 $PKG/usr/doc/strace-$VERSION/* zcat $CWD/strace-dont-use-REG_SYSCALL-for-sh.patch.gz | patch -p1 --verbose || exit 1 ./configure \ --prefix=/usr \ --mandir=/usr/man \ --build=$TARGET make || exit 1 make install DESTDIR=$PKG strip --strip-unneeded $PKG/usr/bin/strace 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 cd $PKG makepkg -l y -c n $TMP/strace-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/strace.build.log