#!/bin/sh
CWD=`pwd`
VERSION=1.2.7
cd /tmp
tar xjvf $CWD/xmms-$VERSION.tar.bz2
cd xmms-$VERSION
# I first tried --prefix=/usr/X11R6 --datadir=/usr/share (to try to keep
# locale and aclocal under /usr so they work), but the configure script
# put it under /usr.  It seems like the best plan of action given what
# happens when you try to follow the "standards".
CFLAGS=-O2 ./configure --prefix=/usr \
            --localstatedir=/var/lib \
            i386-slackware-linux
make
make install
mkdir /usr/doc/xmms-$VERSION
cp -a ABOUT-NLS AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README TODO \
  /usr/doc/xmms-$VERSION
chmod 644 /usr/doc/xmms-$VERSION/*
chown root.root /usr/doc/xmms-$VERSION/*
mkdir -p /install
cat $CWD/slack-desc > /install/slack-desc
