recipe 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # Build recipe for xfce4-notifyd.
  2. #
  3. # Copyright (C) 2018-2019 Matias Fonzo, <selk@dragora.org>.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. program=xfce4-notifyd
  17. version=0.4.4
  18. release=1
  19. # Set 'outdir' for a nice and well-organized output directory
  20. outdir="${outdir}/${arch}/xfce"
  21. tarname=${program}-${version}.tar.bz2
  22. # Remote source(s)
  23. fetch="https://archive.xfce.org/src/apps/xfce4-notifyd/${version%.*}/$tarname"
  24. description="
  25. Xfce4 notification daemon.
  26. The Xfce Notify Daemon (or "xfce4-notifyd") is a small program that
  27. implements the "server-side" portion of the Freedesktop desktop
  28. notifications specification. Applications that wish to pop up a
  29. notification bubble in a standard way can implicitly make use of
  30. xfce4-notifyd to do so by sending standard messages over D-Bus using
  31. the org.freedesktop.Notifications interface.
  32. Apart from the notification server a panel plugin is included which
  33. shows recent notifications in a dropdown menu in the Xfce Panel.
  34. "
  35. homepage=https://xfce.org
  36. license=GPLv2+
  37. # Source documentation
  38. docs="AUTHORS COPYING ChangeLog NEWS README TODO"
  39. docsdir="${docdir}/${program}-${version}"
  40. build()
  41. {
  42. set -e
  43. unpack "${tardir}/$tarname"
  44. cd "$srcdir"
  45. # Set sane permissions
  46. chmod -R u+w,go-w,a+rX-s .
  47. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  48. $configure_args \
  49. --libdir=/usr/lib${libSuffix} \
  50. --mandir=$mandir \
  51. --enable-static=no \
  52. --enable-shared=yes \
  53. --enable-debug=no \
  54. --enable-dbus-start-daemon \
  55. --with-x \
  56. --build="$(cc -dumpmachine)"
  57. make -j${jobs} V=1
  58. make -j${jobs} DESTDIR="$destdir" install-strip
  59. # WTF?.. No option to disable systemd .service
  60. rm -rf "${destdir}/usr/lib/systemd"
  61. rmdir "${destdir}/usr/lib" || true
  62. lzip -9 "${destdir}/${mandir}"/man?/*.?
  63. # Copy documentation
  64. mkdir -p "${destdir}${docsdir}"
  65. cp -p $docs "${destdir}${docsdir}"/
  66. }