# Maintainer: PktSurf <smlinux@pktsurf.in>
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-$version.tar.bz2"
desc="Xfce Session Manager"
requires="libsm xinit xrdb libxfce4ui"

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

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

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

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

  mkfinalpkg
}

sha512sums="
8740a030b3840fa798951075ad50854f65df8fd9da7276c87b3aa78b20ff34225d8e06efd3fc996fb11641715a9c741b84f8b2aaa49e4068df412f736c43a236  xfce4-session-4.16.0.tar.lz
"
