recipe 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Build recipe for util-macros.
  2. #
  3. # Copyright (c) 2017 Mateus P. Rodrigues <mprodrigues@dragora.org>.
  4. # Copyright (c) 2017-2018, 2021, 2023 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=util-macros
  20. version=1.20.0
  21. arch=noarch
  22. release=1
  23. # Define a category for the output of the package name
  24. pkgcategory=xorg_util
  25. tarname=${program}-${version}.tar.gz
  26. # Remote source(s)
  27. fetch=https://www.x.org/releases/individual/util/$tarname
  28. description="
  29. Autoconf macros used in X modular configure.ac files.
  30. The util-macros package contains the m4 macros used
  31. by all of the Xorg packages.
  32. "
  33. homepage=https://www.x.org
  34. license="MIT X Consortium"
  35. # Source documentation
  36. docs="COPYING ChangeLog 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. ./configure $configure_args
  45. make -j${jobs} V=1
  46. make -j${jobs} V=1 DESTDIR="$destdir" install
  47. # Copy documentation
  48. mkdir -p "${destdir}/$docsdir"
  49. cp -p $docs "${destdir}/$docsdir"
  50. }