# Depends on: doxygen

description="An alternative implementation of Linux sound support"
url="http://www.alsa-project.org"
packager="tnut <tnut@nutyx.org>"
contributors="Pierre B"

name=alsa-lib
version=1.1.7

source=(ftp://ftp.alsa-project.org/pub/lib/$name-$version.tar.bz2)
build() {
cd $name-$version
./configure
make
make DESTDIR=$PKG install
make doc
install -v -d -m755 $PKG/usr/share/doc/$name-$version/html
cp -a doc/doxygen/html/* $PKG/usr/share/doc/$name-$version/html
chmod 644 $PKG/usr/share/doc/$name-$version/html/*
rm $PKG/usr/lib/libasound.la
}
uptodate() {
local url ext

url="ftp://ftp.alsa-project.org/pub/lib/"
ext=".tar.bz2"
lynx -read_timeout=20 -dump -listonly -nonumbers \
$url|grep $name-[0-9]|sed "s@$url$name-@@"|sed "s@$ext@@"|\
sort|tail -1
}
