#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-librsvg VERSION=2.7.2 CD=2.7.2 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux ( cd $TMP tar xjf $CWD/librsvg-$VERSION.tar.bz2 cd librsvg-$CD chown -R root.root . find . -perm 666 -exec chmod 644 {} \; find . -perm 664 -exec chmod 644 {} \; ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --disable-gnome-vfs \ --disable-croco \ $TARGET make make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/librsvg-$VERSION cp -a AUTHORS COPYING NEWS README doc/html $PKG/usr/doc/librsvg-$VERSION rm -rf $PKG/usr/doc/librsvg ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded ) gzip -9 $PKG/usr/man/man1/* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/librsvg-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/librsvg.build.log