# Maintainer: PktSurf <smlinux@pktsurf.in>
app=xfce4-settings
version=4.16.5
build=1sml
homepage="https://docs.xfce.org/xfce/xfce4-settings/start"
download="https://archive.xfce.org/src/xfce/xfce4-settings/4.16/xfce4-settings-$version.tar.bz2"
desc="Settings Manager for Xfce"
requires="libnotify exo garcon libxfce4ui xfconf"

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

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

build() {
  applypatch $srcdir/default-xsettings-xml.patch

  ./configure \
    --prefix="" \
    --disable-static \
    --enable-sound-settings \
    --enable-pluggable-dialogs \
    --disable-upower-glib 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
1334875d8ae02a63312a3973f310138640b1a1ee80ad6665ee0f45d544092ef556b89259da613c53ab51219c9ac97fee860292133716da136792cdfd3d646e4e  xfce4-settings-4.16.5.tar.bz2
09fe6b214dbf5638d9ba47e40f67a22a1d96d61031b3c9e6e971cefc8b0f511ed37bdc90c1a906f26522ebb04a6c458b82f4e23ed84cb90772445be961b244c3  default-xsettings-xml.patch
"
