recipe 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Build recipe for at-spi2-atk.
  2. #
  3. # Copyright (C) 2018, MMPG <mmpg@vp.pl>
  4. # Copyright (C) 2018-2019, 2021 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. # Exit immediately on any error
  18. set -e
  19. program=at-spi2-atk
  20. version=2.38.0
  21. release=1
  22. # Define a category for the output of the package name
  23. pkgcategory=x-libs
  24. tarname=${program}-${version}.tar.xz
  25. # Remote source(s)
  26. fetch="https://ftp.gnome.org/pub/gnome/sources/at-spi2-atk/${version%.*}/$tarname"
  27. description="
  28. A GTK+ module that bridges ATK to the new D-Bus based AT-SPI.
  29. This package includes libatk-bridge, a library that bridges ATK to the
  30. new D-Bus based AT-SPI, as well as a corresponding module for gtk+ 2.x.
  31. Gtk+ 3.x now links against libatk-bridge directly rather than requiring
  32. it to be loaded as a module.
  33. These libraries depend on the at-spi2-core code that contains the
  34. daemon for registering applications, D-Bus helper libraries and the
  35. AT-SPI D-Bus specifications.
  36. "
  37. homepage=https://wiki.gnome.org/Accessibility/
  38. license=LGPLv2+
  39. docs="AUTHORS COPYING NEWS README"
  40. docsdir="${docdir}/${program}-${version}"
  41. build()
  42. {
  43. unpack "${tardir}/$tarname"
  44. cd "$srcdir"
  45. # Set sane permissions
  46. chmod -R u+w,go-w,a+rX-s .
  47. mkdir BUILD
  48. cd BUILD
  49. CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  50. meson setup $configure_args \
  51. --libdir /usr/lib${libSuffix} \
  52. --buildtype=release \
  53. --strip \
  54. ..
  55. ninja -j${jobs}
  56. DESTDIR="$destdir" ninja -j${jobs} install
  57. cd ..
  58. # Copy documentation
  59. mkdir -p "${destdir}/$docsdir"
  60. cp -p $docs "${destdir}/$docsdir"
  61. }