#!/bin/sh -x

ORIGPATH="$( pwd )"

cd ${SLACKTRACKSCRATCHDIR}
tar xzf $ORIGPATH/source/autoconf*orig*
cd autoconf*
zcat $ORIGPATH/source/autoconf*diff* | patch -p1
./configure --prefix=/usr
make
make install DESTDIR=$PKG
mkdir -p $PKG/install
install -m644 $ORIGPATH/slack-desc $PKG/install/

# Fix stuff up. Instead of symlinks, Debian's autoconf-wrapper
# will call these named files if necessary.
( cd ${SLACKTRACKFAKEROOT}/usr/bin
  mv autoconf autoconf2.13
  mv autoheader autoheader2.13
  mv autoreconf autoreconf2.13
  mv autoupdate autoupdate2.13
  mv ifnames ifnames2.13
  mv autoscan autoscan2.13 
  cd ../..
  rm -rf usr/info usr/man )


