CWD=`pwd`
cd /tmp
tar xyvf $CWD/gimp-1.0.4.tar.bz2
cd gimp-1.0.4
./configure --prefix=/usr --with-gtk-prefix=/usr --enable-threads
make CFLAGS=-O2 LDFLAGS=-s
make CFLAGS=-O2 LDFLAGS=-s install
mkdir -p /usr/doc/gimp-1.0.4
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README TODO docs \
  /usr/doc/gimp-1.0.4
chown -R root.root /usr/doc/gimp-1.0.4
chmod -R 644 /usr/doc/gimp-1.0.4
find /usr/doc/gimp-1.0.4 -type d -exec chmod 755 {} \;
