#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-pango rm -rf $PKG mkdir -p $PKG/usr VERSION=1.12.3 ARCH=${ARCH:-x86_64} BUILD=4 if [ "$ARCH" = "i386" ]; then SLKCFLAGS="-O2 -march=i386 -mcpu=i686" elif [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mcpu=i686" elif [ "$ARCH" = "s390" ]; then SLKCFLAGS="-O2" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" fi cd $TMP rm -rf pango-$VERSION tar xjvf $CWD/pango-$VERSION.tar.bz2 cd pango-$VERSION chown -R root:root . find . -perm 664 -exec chmod 644 {} \; zcat $CWD/dual-arch.diff.gz | patch -p1 --verbose LDFLAGS="-L/usr/lib64 -L/lib64" \ CFLAGS="$SLKCFLAGS" \ ./configure --prefix=/usr \ --libdir=/usr/lib64 \ --sysconfdir=/etc \ $ARCH-slackware-linux make -j60 make install DESTDIR=$PKG # Spamming your root partition: make install mkdir -p $PKG/etc/pango cp -a /etc/pango/* $PKG/etc/pango strip $PKG/usr/bin/* ( cd $PKG find . -type f | xargs file | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded ) gzip -9 $PKG/usr/man/man?/* mkdir -p $PKG/usr/doc/pango-$VERSION cp -a \ AUTHORS COPYING ChangeLog NEWS README TODO \ $PKG/usr/doc/pango-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc mkdir $PKG/etc/pango/$ARCH-slackware-linux-gnu mv $PKG/etc/pango/pango.modules $PKG/etc/pango/$ARCH-slackware-linux-gnu/pango.modules cd $TMP/package-pango makepkg -l y -c n ../pango-$VERSION-$ARCH-$BUILD.tgz