# Description: ALSA utils
# URL: http://www.alsa-project.org/
# Maintainer: Matt Housh, jaeger at crux dot nu
# Depends on: gettext, alsa-lib, dialog

name=alsa-utils
version=1.0.29
release=1
source=(http://crux.nu/files/distfiles/$name-$version.tar.bz2 \
    rc.alsa)

build() {
    cd $name-$version
    ./configure --prefix=/usr \
        --mandir=/usr/man \
        --disable-nls \
        --disable-xmlto

    # alsactl_init.7 is generated using xmlto, which we don't have
    #touch alsactl/alsactl_init.7

    make
    make DESTDIR=$PKG install
    rm -r $PKG/usr/man/{fr,man7}

    install -D -m 0755 $SRC/rc.alsa $PKG/etc/rc.d/alsa
}
