app=xfce4-session
version=4.16.0
build=1sml
homepage="https://docs.xfce.org/xfce/xfce4-session/start"
download="https://archive.xfce.org/xfce/4.16/src/xfce4-session-4.16.0.tar.bz2"
desc="Xfce Session Manager"
requires="libsm xinit xrdb libxfce4ui"

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

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

  ./configure \
    --prefix="/" \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --disable-static \
    --disable-polkit \
    --disable-legacy-sm

  make
  make install XSESSION_PREFIX="/" DESTDIR=$pkg

  mkfinalpkg
}

sha512sums="
fd74b24d0c2762b5a99883b62ca9447c3683e42e9e39193d0f60e02b8c1ad77a3dfff4df6f3b3c345d8ea3d4c4ef93485e9b5586862bab85d4b37110d3400fad  xfce4-session-4.16.0.tar.bz2
"
