recipe 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. #
  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-core
  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-core/${version%.*}/$tarname"
  27. description="
  28. A part of the GNOME Accessibility Project.
  29. It provides a Service Provider Interface for the Assistive Technologies
  30. available on the GNOME platform and a library against which
  31. applications can be linked.
  32. "
  33. homepage=https://wiki.gnome.org/Accessibility/
  34. license=LGPLv2.1
  35. docs="AUTHORS COPYING MAINTAINERS NEWS README"
  36. docsdir="${docdir}/${program}-${version}"
  37. build()
  38. {
  39. unpack "${tardir}/$tarname"
  40. cd "$srcdir"
  41. # Set sane permissions
  42. chmod -R u+w,go-w,a+rX-s .
  43. mkdir BUILD
  44. cd BUILD
  45. CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  46. meson setup $configure_args \
  47. --libdir /usr/lib${libSuffix} \
  48. --buildtype=release \
  49. --strip \
  50. ..
  51. ninja -j${jobs}
  52. DESTDIR="$destdir" ninja -j${jobs} install
  53. cd ..
  54. # This is only for poseurs (or posers).. Are you a POSEUR(tm)?
  55. rm -rf "${destdir}/usr/lib/systemd"
  56. rmdir "${destdir}/usr/lib" || true
  57. # Copy documentation
  58. mkdir -p "${destdir}${docsdir}"
  59. cp -p $docs "${destdir}${docsdir}"
  60. }