recipe 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # Build recipe for xfce4-settings.
  2. #
  3. # Copyright (C) 2018, MMPG <mmpg@vp.pl>
  4. # Copyright (C) 2018-2019 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.14.1
  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="https://archive.xfce.org/src/xfce/xfce4-settings/${version%.*}/$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=https://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 Gartoon redux icon theme
  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. --with-x \
  62. --build="$(cc -dumpmachine)"
  63. make -j${jobs} V=1
  64. make -j${jobs} DESTDIR="$destdir" install-strip
  65. # Prevent icon crash
  66. find "${destdir}"/usr/share/icons \
  67. -type f -name "icon-theme.cache" -exec rm -f {} \;
  68. # Copy documentation
  69. mkdir -p "${destdir}${docsdir}"
  70. cp -p $docs "${destdir}${docsdir}"
  71. }