# Build/install Tix the way Slackware's binary package is made:

VERSION=8.1.3

CWD=`pwd`
cd /tmp
tar xzvf $CWD/tix-$VERSION.tar.gz
cd tix-$VERSION
mkdir -p /usr/doc/tix-$VERSION
cp -a ABOUT.* README.* Roadmap.html TODO.html Version license.terms \
  docs/BinInst.* docs/et.* docs/FAQ.* docs/Files.* docs/Install.* \
  docs/Release* docs/Uni* docs/html \
  /usr/doc/tix-$VERSION
chown -R root.root /usr/doc/tix-$VERSION
find /usr/doc/tix-$VERSION -type f -exec chmod 644 {} \;
cd unix
./configure --prefix=/usr --enable-shared
cd tk8.3
./configure --prefix=/usr \
            --with-tcl=../../../tcl8.3.4 \
            --with-tk=../../../tk8.3.4
make install
make clean
./configure --prefix=/usr --enable-shared \
            --with-tcl=../../../tcl8.3.4 \
            --with-tk=../../../tk8.3.4
make install
cd ..
make install
mkdir -p /install
cat $CWD/slack-desc > /install/slack-desc
