recipe 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Build recipe for xfdesktop.
  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=xfdesktop
  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/xfdesktop/${version%.*}/$tarname"
  25. description="
  26. A desktop manager for the Xfce Desktop Environment.
  27. Desktop in this respect means the root window. The manager handles
  28. tasks such as the background image and color, the root menu and
  29. windowlist, minimized application icons, and file icons on the
  30. desktop.
  31. "
  32. homepage=https://xfce.org
  33. license=GPLv2+
  34. # Source documentation
  35. docs="AUTHORS COPYING ChangeLog NEWS README TODO"
  36. docsdir="${docdir}/${program}-${version}"
  37. build()
  38. {
  39. set -e
  40. unpack "${tardir}/$tarname"
  41. cd "$srcdir"
  42. # Set sane permissions
  43. chmod -R u+w,go-w,a+rX-s .
  44. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  45. $configure_args \
  46. --libdir=/usr/lib${libSuffix} \
  47. --mandir=$mandir \
  48. --enable-static=no \
  49. --enable-shared=yes \
  50. --enable-debug=no \
  51. --enable-gio-unix=yes \
  52. --enable-notifications=yes \
  53. --disable-thunarx \
  54. --with-file-manager-fallback=spacefm \
  55. --with-x \
  56. --build="$(cc -dumpmachine)"
  57. make -j${jobs} V=1
  58. make -j${jobs} DESTDIR="$destdir" install-strip
  59. lzip -9 "${destdir}/${mandir}"/man?/*.?
  60. # Copy documentation
  61. mkdir -p "${destdir}${docsdir}"
  62. cp -p $docs "${destdir}${docsdir}"
  63. }