#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-libsigsegv VERSION=2.8 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG/usr ( cd $TMP rm -rf libsigsegv-$VERSION tar xzf $CWD/libsigsegv-$VERSION.tar.gz cd libsigsegv-$VERSION chown -R root.root . ./configure \ --prefix=/usr \ --enable-shared=yes \ --enable-static=yes \ --build=$TARGET make || exit 1 make install prefix=$PKG/usr strip -g $PKG/usr/lib/*.a mkdir -p $PKG/usr/doc/libsigsegv-$VERSION cp -a AUTHORS COPYING ChangeLog NEWS PORTING README $PKG/usr/doc/libsigsegv-$VERSION # Strip stuff: ( cd $PKG find . | xargs file | 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/libsigsegv-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/libsigsegv.build.log