app=xfce4-settings
version=4.16.0
build=1sml
homepage="https://docs.xfce.org/xfce/xfce4-settings/start"
download="https://archive.xfce.org/xfce/4.16/src/xfce4-settings-4.16.0.tar.bz2"
desc="Settings Manager for Xfce"
requires="libnotify exo garcon libxfce4ui xfconf"

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

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

  applypatch $srcdir/default-xsettings-xml.patch

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
38c06e4d4c0963019c20a3afadb0dc1bde8d1b477bcff2d0253e29beb5e4a8b5ae9d058b544cec6fe2bfc2c1d44f74283c94538eda25436d58db0754f112a238  xfce4-settings-4.16.0.tar.bz2
09fe6b214dbf5638d9ba47e40f67a22a1d96d61031b3c9e6e971cefc8b0f511ed37bdc90c1a906f26522ebb04a6c458b82f4e23ed84cb90772445be961b244c3  default-xsettings-xml.patch
"