recipe 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # Build recipe for xfce4-settings.
  2. #
  3. # Copyright (C) 2018, MMPG <mmpg@vp.pl>
  4. # Copyright (C) 2018 Matias Fonzo, <selk@dragora.org>.
  5. #
  6. # Licensed under the Apache License, Version 2.0 (the "License");
  7. # you may not use this file except in compliance with the License.
  8. # You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. program=xfce4-settings
  18. version=4.12.4
  19. release=1
  20. # Set 'outdir' for a nice and well-organized output directory
  21. outdir="${outdir}/${arch}/xfce"
  22. tarname=${program}-${version}.tar.bz2
  23. # Remote source(s)
  24. fetch=http://archive.xfce.org/src/xfce/xfce4-settings/4.12/$tarname
  25. description="
  26. The Xfce settings manager front-end.
  27. It comes with several different components for configuring
  28. application-independent settings inside xfconf.
  29. "
  30. homepage=http://xfce.org
  31. license=GPLv2+
  32. # Source documentation
  33. docs="AUTHORS COPYING ChangeLog NEWS README TODO"
  34. docsdir="${docdir}/${program}-${version}"
  35. build()
  36. {
  37. set -e
  38. unpack "${tardir}/$tarname"
  39. cd "$srcdir"
  40. # Set sane permissions
  41. chmod -R u+w,go-w,a+rX-s .
  42. # Apply patch to make use of Adwaita/gnome icon themes
  43. patch -Np1 -i "${worktree}/patches/xfce4-settings/xsettings.xml.diff"
  44. # TODO: --enable-sound-settings (requires libcanberra)
  45. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  46. $configure_args \
  47. --libdir=/usr/lib${libSuffix} \
  48. --mandir=$mandir \
  49. --infodir=$infodir \
  50. --enable-static=no \
  51. --enable-shared=yes \
  52. --enable-debug=no \
  53. --enable-xrandr=yes \
  54. --enable-libnotify=yes \
  55. --enable-gio-unix=yes \
  56. --enable-xcursor=yes \
  57. --enable-xorg-libinput=yes \
  58. --enable-libxklavier=yes \
  59. --enable-pluggable-dialogs=yes \
  60. --disable-upower-glib \
  61. --disable-linker-opts \
  62. --with-x \
  63. --build="$(cc -dumpmachine)"
  64. make -j${jobs} V=1
  65. make -j${jobs} DESTDIR="$destdir" install-strip
  66. # Prevent icon crash
  67. find "${destdir}"/usr/share/icons \
  68. -type f -name "icon-theme.cache" -exec rm -f {} \;
  69. # Copy documentation
  70. mkdir -p "${destdir}${docsdir}"
  71. cp -p $docs "${destdir}${docsdir}"
  72. }