recipe 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Build recipe for at-spi2-core.
  2. #
  3. # Copyright (C) 2018, MMPG <mmpg@vp.pl>
  4. # Copyright (C) 2018-2019, 2021 Matias Fonzo, <selk@dragora.org>.
  5. # Copyright (C) 2022 Matias Fonzo, <selk@dragora.org>.
  6. #
  7. # Licensed under the Apache License, Version 2.0 (the "License");
  8. # you may not use this file except in compliance with the License.
  9. # You may obtain a copy of the License at
  10. #
  11. # http://www.apache.org/licenses/LICENSE-2.0
  12. #
  13. # Unless required by applicable law or agreed to in writing, software
  14. # distributed under the License is distributed on an "AS IS" BASIS,
  15. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. # See the License for the specific language governing permissions and
  17. # limitations under the License.
  18. # Exit immediately on any error
  19. set -e
  20. program=at-spi2-core
  21. version=2.46.0
  22. release=1
  23. # Define a category for the output of the package name
  24. pkgcategory=x-libs
  25. tarname=${program}-${version}.tar.xz
  26. # Remote source(s)
  27. fetch="https://ftp.gnome.org/pub/gnome/sources/at-spi2-core/${version%.*}/$tarname"
  28. description="
  29. A part of the GNOME Accessibility Project.
  30. It provides a Service Provider Interface for the Assistive Technologies
  31. available on the GNOME platform and a library against which
  32. applications can be linked.
  33. "
  34. homepage=https://wiki.gnome.org/Accessibility/
  35. license=LGPLv2.1
  36. docs="COPYING MAINTAINERS NEWS README.md"
  37. docsdir="${docdir}/${program}-${version}"
  38. build()
  39. {
  40. unpack "${tardir}/$tarname"
  41. cd "$srcdir"
  42. # Set sane permissions
  43. chmod -R u+w,go-w,a+rX-s .
  44. mkdir BUILD
  45. cd BUILD
  46. CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  47. meson setup $configure_args \
  48. --libdir /usr/lib${libSuffix} \
  49. --buildtype=release \
  50. --strip \
  51. ..
  52. ninja -j${jobs}
  53. DESTDIR="$destdir" ninja -j${jobs} install
  54. cd ..
  55. # This is only for poseurs (or posers).. Are you a POSEUR(tm)?
  56. rm -rf "${destdir}/usr/lib/systemd"
  57. rmdir "${destdir}/usr/lib" || true
  58. # Copy documentation
  59. mkdir -p "${destdir}/$docsdir"
  60. cp -p $docs "${destdir}/$docsdir"
  61. }