recipe 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # Build recipe for at-spi2-core.
  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=at-spi2-core
  18. version=2.34.0
  19. release=1
  20. # Set 'outdir' for a nice and well-organized output directory
  21. outdir="${outdir}/${arch}/x-libs"
  22. tarname=${program}-${version}.tar.xz
  23. # Remote source(s)
  24. fetch="http://ftp.gnome.org/pub/gnome/sources/at-spi2-core/${version%.*}/$tarname"
  25. description="
  26. A part of the GNOME Accessibility Project.
  27. It provides a Service Provider Interface for the Assistive Technologies
  28. available on the GNOME platform and a library against which
  29. applications can be linked.
  30. "
  31. homepage=http://wiki.gnome.org/Accessibility/
  32. license=LGPLv2.1
  33. docs="AUTHORS COPYING MAINTAINERS NEWS README"
  34. docsdir="${docdir}/${program}-${version}"
  35. build()
  36. {
  37. set -e
  38. unpack "${tardir}/$tarname"
  39. cd "$srcdir"
  40. # Set sane permissions
  41. chmod -R u+w,go-w,a+rX-s .
  42. mkdir -p build
  43. cd build
  44. CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  45. meson setup $configure_args \
  46. --libdir /usr/lib${libSuffix} \
  47. --buildtype=release \
  48. --strip \
  49. ..
  50. ninja
  51. DESTDIR="$destdir" ninja install
  52. cd ..
  53. # This is only for poseurs (or posers).. Are you a POSEUR(tm)?
  54. rm -rf "${destdir}/usr/lib/systemd"
  55. rmdir "${destdir}/usr/lib" || true
  56. # Copy documentation
  57. mkdir -p "${destdir}${docsdir}"
  58. cp -p $docs "${destdir}${docsdir}"
  59. }