# Maintainer: PktSurf <smlinux@pktsurf.in>
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-$version.tar.bz2"
desc="Power manager for Xfce"
requires="upower libnotify libxfce4ui xfce4-panel xfce4-notifyd"

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

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

build() {
  ./configure \
    --prefix="" \
    --disable-polkit \
    --disable-network-manager 

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
2480d6ac40d7108d7b026a8e47e3ba34e343a07caed26e6ad37777d35ca714268e4716140fd5edaa492fd45cf9c0ce849b9a33733cd63a75bbca42f9ecd5a681  xfce4-power-manager-4.16.0.tar.lz
"
