
#
# generated by mkskel 0.0.2r28
#

VERSION="0.9.2"
ARCH="i386"
RELEASE="1"

# --------- |-----handy-ruler------------------------------------------------------|
DESCRIPTION="alsa-driver\n
             \n
             Advanced Linux Sound Architecture driver. Driver is fully compatible\n
             with OSS/Lite, but contains many enhanced features."
# --------- |-----handy-ruler------------------------------------------------------|

PREFIX="/usr"
SYSCONFDIR="/etc"

SOURCE_DIRECTORY="alsa-driver-${VERSION}"

PACKAGE_NAME="alsa-driver-${VERSION}-${ARCH}-${RELEASE}"

INSTALL_MODE="normal"

DOWNLOAD () { return 0; }

EXTRACT ()
{
  do_extract "alsa-driver-0.9.2.tar.bz2"
}

CONFIGURE ()
{
  ./configure --prefix=${PREFIX} \
              --sysconfdir=${SYSCONFDIR} \
              --with-cards=ymfpci \
              --with-isapnp=no \
              --with-sequencer=no \
              --with-oss=yes \
              --with-moddir=/lib/modules/`uname -r`/misc
}

BUILD ()
{
  make
}

INSTALL ()
{
  make -e DESTDIR=${DESTDIR} install-modules install-headers
}

PRE_PACKAGE ()
{
  ( cd $DESTDIR && rm -rf lib )
}
