# Maintainer: Luis Henrique <lmello.009@gmail.com>

# Mandatory
pkgname=xfce4-volumed
pkgver=0.1.8
pkgrel=1lm
source=("http://archive.xfce.org/src/apps/xfce4-volumed/0.1/xfce4-volumed-0.1.8.tar.bz2")
# Optional
docs=("AUTHORS" "COPYING" "ChangeLog" "INSTALL" "NEWS" "README" "TODO")
url="https://launchpad.net/xfce4-volumed"
options=("noautodotnew")
 
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"xfce4-volumed (audio volume management daemon)"
"This daemon is responsible of making the volume up/down and mute keys"
"of the keyboard work automatically, and uses the XFCE 4 mixer's"
"defined card and track for chosing which track to act on. It also"
"provides volume change and mute toggle notifications if the"
"notification daemon is running."
)

build() {
        cd $startdir/src/$pkgname-$pkgver
        # Fix gcc flags
        sed -i "s/-O2/$CFLAGS/" configure
        ./configure \
          --prefix=/usr \
          --libdir=/usr/lib${LIBDIRSUFFIX} \
          --sysconfdir=/etc \
          --localstatedir=/var \
          --mandir=/usr/man \
          --docdir=/usr/doc/$pkgname-$pkgver \
          --build=$arch-slackware-linux
        make || return 1
        make DESTDIR=$startdir/pkg install
}