#Maintainer: Dimitris Tzemos  <djemos~at~slackel~dot~gr>

pkgname=volumeicon
pkgver=0.4.6
pkgrel=1dj
source=("http://softwarebakery.com/maato/files/volumeicon/$pkgname-$pkgver.tar.gz" "volumeicon-0.4.6-glib-2.31.patch" )
url=http://softwarebakery.com/maato/volumeicon.html
docs=('AUTHORS' 'COPYING' 'ChangeLog' 'NEWS' 'README')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"volumeicon (volume control)"
"volumeicon aims to be a lightweight volume control that"
"sits in the systray."
""
"http://softwarebakery.com/maato/volumeicon.html"
)

build() {

oss_params=""    ; [ "${OSS:-no}" != "no" ]    && oss_params="--enable-oss"
notify_params="" ; [ "${NOTIFY:-no}" != "no" ] && notify_params="--enable-notify"

cd $SRC/$pkgname-$pkgver

# Fix includes.
patch -p0 -i $SRC/volumeicon-0.4.6-glib-2.31.patch || return 1

./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --docdir=/usr/doc/$pkgname-$pkgver \
  --build=$arch-slackware-linux \
  $oss_params $notify_params || return 1
make || return 1
make install-strip DESTDIR=$PKG || return 1

}

