#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-libxslt VERSION=1.1.26 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf libxslt-$VERSION tar xf $CWD/libxslt-$VERSION.tar.gz cd libxslt-$VERSION chown -R root.root . ./configure \ --prefix=/usr \ --mandir=/usr/man \ --build=$TARGET make || exit 1 make install DESTDIR=$PKG mv $PKG/usr/share/doc $PKG/usr mv $PKG/usr/doc/libxslt-python-$VERSION $PKG/usr/doc/libxslt-$VERSION rm -rf $PKG/usr/doc/libxslt-$VERSION/* cp -a AUTHORS COPYING Copyright FEATURES NEWS README TODO libxslt.spec $PKG/usr/doc/libxslt-$VERSION find $PKG/usr/doc/libxslt-$VERSION -type f | xargs chmod 644 chown -R root.bin $PKG/usr/bin ( 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 ) 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/libxslt-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/libxslt.build.log