recipe 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Build recipe for bsdcompat-headers (virtual).
  2. #
  3. # Copyright (c) 2020 Matias Fonzo, <selk@dragora.org>.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. # Exit immediately on any error
  17. set -e
  18. program=bsdcompat-headers
  19. version=0.7.2
  20. release=1
  21. # Define a category for the output of the package name
  22. pkgcategory=devel
  23. description="
  24. BSD compatibility headers.
  25. This meta package includes the following headers:
  26. sgidefs.h, cdefs.h, queue.h, tree.h.
  27. "
  28. homepage=https://www.dragora.org
  29. license=BSD
  30. build()
  31. {
  32. mkdir -p "${destdir}/usr/include/sys"
  33. for name in cdefs.h queue.h tree.h
  34. do
  35. cp -p "${worktree}/archive/bsdcompat-headers/${name}" \
  36. "${destdir}/usr/include/sys"
  37. chmod 644 "${destdir}/usr/include/sys/${name}"
  38. done
  39. cp -p "${worktree}/archive/bsdcompat-headers/sgidefs.h" \
  40. "${destdir}"/usr/include/
  41. chmod 644 "${destdir}/usr/include/sgidefs.h"
  42. }