#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-pango VERSION=1.19.3 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG/usr ( cd $TMP rm -rf pango-$VERSION tar xjf $CWD/pango-$VERSION.tar.bz2 cd pango-$VERSION chown -R root.root . find . -perm 664 -exec chmod 644 {} \; ./configure \ --prefix=/usr \ --mandir=/usr/man \ --sysconfdir=/etc \ --build=$TARGET make -j2 || exit 1 make install DESTDIR=$PKG make install mkdir -p $PKG/etc/pango cp /etc/pango/* $PKG/etc/pango chown -R root.bin $PKG/usr/bin ( cd $PKG find . -type f | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . -type f | xargs file | grep "shared" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) gzip -9 $PKG/usr/man/man?/*.? mkdir -p $PKG/usr/doc/pango-$VERSION cp -a AUTHORS COPYING ChangeLog NEWS README $PKG/usr/doc/pango-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $TMP/package-pango makepkg -l y -c n $TMP/pango-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/pango.build.log