#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-gtk+ VERSION=1.2.10 ARCH=alpha BUILD=2 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf gtk+-$VERSION tar xzf $CWD/gtk+-$VERSION.tar.gz cd gtk+-$VERSION ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --with-glib-prefix=/usr \ $TARGET make || exit make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/gtk+-1.2.10 cp -a ABOUT-NLS AUTHORS COPYING HACKING INSTALL NEWS README README.cvs-commits TODO $PKG/usr/doc/gtk+-1.2.10 chown -R root.root $PKG/usr/doc/gtk+-1.2.10 ( cd $PKG/usr/info ; rm -rf dir ; gzip -9 * ) ( cd $PKG/usr/man/man1 ; gzip -9 * ) ( 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 ) mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/gtk+-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/gtk.build.log