app=xfce4-power-manager
version=4.16.0
build=1sml
homepage="https://docs.xfce.org/xfce/xfce4-power-manager/start"
download="https://archive.xfce.org/xfce/4.16/src/xfce4-power-manager-4.16.0.tar.bz2"
desc="Power manager for Xfce"
requires="upower libnotify libxfce4ui xfce4-panel xfce4-notifyd"

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

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

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-polkit \
    --disable-network-manager 

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
1c6ecfb7696bc13c9b11fdfb4ad4e3278de2350bbc59c84c933b28c07c1a0c55b9954794e1f57e4407d2b54ffaace9ea5baed829bf0683332cf9d12bff7e71ec  xfce4-power-manager-4.16.0.tar.bz2
"
