recipe 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Build recipe for startup-notification.
  2. #
  3. # Copyright (C) 2018 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=startup-notification
  17. version=0.12
  18. release=1
  19. # Set 'outdir' for a nice and well-organized output directory
  20. outdir="${outdir}/${arch}/x-libs"
  21. tarname=${program}-${version}.tar.gz
  22. # Remote source(s)
  23. fetch=http://www.freedesktop.org/software/startup-notification/releases/$tarname
  24. description="
  25. Notification libraries used by programs.
  26. The startup-notification package contains notification libraries.
  27. These are useful for building a consistent manner to notify the user
  28. through the cursor that the application is loading.
  29. "
  30. homepage=http://www.freedesktop.org/software/startup-notification
  31. license=LGPLv2+
  32. docs="AUTHORS COPYING ChangeLog NEWS README"
  33. docsdir="${docdir}/${program}-${version}"
  34. build()
  35. {
  36. set -e
  37. unpack "${tardir}/$tarname"
  38. cd "$srcdir"
  39. # Set sane permissions
  40. chmod -R u+w,go-w,a+rX-s .
  41. # Update for hosts based on musl
  42. cp -f "${worktree}/archive/common/config.guess" config.guess
  43. cp -f "${worktree}/archive/common/config.sub" config.sub
  44. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  45. $configure_args \
  46. --libdir=/usr/lib${libSuffix} \
  47. --enable-static=no \
  48. --enable-shared=yes \
  49. --with-x \
  50. --build="$(cc -dumpmachine)"
  51. make -j${jobs} V=1
  52. make -j${jobs} V=1 DESTDIR="$destdir" install-strip
  53. # Copy documentation
  54. mkdir -p "${destdir}${docsdir}"
  55. cp -p $docs "${destdir}${docsdir}"
  56. }