description="plugin that monitors customizable programs stdout for the Xfce4 panel"
url="https://docs.xfce.org/panel-plugins/xfce4-genmon-plugin"

packager="Tnut <tnut@nutyx.org>"
contributors="Spiky"

makedepends=(autoconf intltool libtool xfce4-panel hicolor-icon-theme)
run=()
set=(xfce4-extra)

name=xfce4-genmon-plugin
version=4.1.1
release=2

source=(https://archive.xfce.org/src/panel-plugins/$name/4.1/$name-$version.tar.bz2)

build() {
cd $name-$version
autoconf 
./configure --prefix=/usr \
    --sysconfdir=/etc \
    --libexecdir=/usr/lib \
    --localstatedir=/var \
    --disable-static \
    --disable-debug
make
make DESTDIR=$PKG install

find $PKG/usr/share/xfce4/panel/plugins -type f -name '*.desktop' \
       -exec sed -r '/\[.+\]=/d' -i {} \;
}
