#!/bin/sh
CWD=`pwd` 
TMP=/tmp
PKG=$TMP/package-gdk-pixbuf
VERSION=0.22.0
ARCH=alpha
BUILD=2
TARGET=$ARCH-alphaslack-linux

cat << EOF

This is one of those [silly] things that will only build under X...

EOF
sleep 5
( cd $TMP
tar xjf $CWD/gdk-pixbuf-$VERSION.tar.bz2
cd gdk-pixbuf-$VERSION
./configure --prefix=/usr $TARGET
make
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/gdk-pixbuf-$VERSION
cp -a AUTHORS COPYING COPYING.LIB INSTALL NEWS README TODO $PKG/usr/doc/gdk-pixbuf-$VERSION
chown -R root.root $PKG/usr/doc/gdk-pixbuf-$VERSION
chmod 644 $PKG/usr/doc/gdk-pixbuf-$VERSION/*
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
makepkg -l y -c n $TMP/gdk-pixbuf-$VERSION-$ARCH-$BUILD.tgz
) 2>&1 | tee $TMP/gdk-pixbuf.build.log
