# Maintainer: PktSurf <smlinux@pktsurf.in>
app=xfce4-cpugraph-plugin
version=1.2.6
build=1sml
homepage="https://docs.xfce.org/panel-plugins/xfce4-cpugraph-plugin"
download="https://archive.xfce.org/src/panel-plugins/xfce4-cpugraph-plugin/1.2/xfce4-cpugraph-plugin-$version.tar.bz2"
desc="Xfce Panel plugin to show graphically show CPU load"
requires="xfce4-panel"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix="" \
    --disable-static

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
8e26f22639189a896c3f0d7fa6b73e2fb38418f3046c1153d2c8a264c0a4ce3d60182a6faca2a3589ddddb61e9c93f420110d00aa5f12af01984f0a1a4958ac3  xfce4-cpugraph-plugin-1.2.6.tar.lz
"
