recipe 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # Build recipe for acl.
  2. #
  3. # Copyright (c) 2016-2018 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. program=acl
  17. version=ff3bca294e092810e92fd8a832bc0388e3194932-rebase
  18. pkgversion=ff3bca2
  19. release=1
  20. tarname=${program}-${version}.tar.lz
  21. # Remote source(s)
  22. fetch=http://rsync.dragora.org/current/sources/$tarname
  23. description="
  24. Access Control Lists.
  25. The POSIX Access Control Lists, are used to define more fine-grained
  26. discretionary access rights for files and directories.
  27. "
  28. homepage=http://savannah.nongnu.org/projects/acl
  29. license="GPLv2+, LGPLv2.1"
  30. # Source documentation
  31. docs="README doc/CHANGES doc/COPYING* doc/TODO"
  32. docsdir="${docdir}/${program}-${pkgversion}"
  33. build()
  34. {
  35. set -e
  36. unpack "${tardir}/$tarname"
  37. cd "$srcdir"
  38. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  39. $configure_args \
  40. --libdir=/usr/lib${libSuffix} \
  41. --mandir=$mandir \
  42. --docdir=$docsdir \
  43. --build="$(cc -dumpmachine)"
  44. make -j${jobs} V=1
  45. make -j${jobs} DESTDIR="$destdir" install-strip
  46. # Compress and link man pages (if needed)
  47. if test -d "${destdir}/$mandir"
  48. then
  49. (
  50. cd "${destdir}/$mandir"
  51. find . -type f -exec lzip -9 '{}' +
  52. find . -type l | while read -r file
  53. do
  54. ln -sf "$(readlink -- "$file").lz" "${file}.lz"
  55. rm -- "$file"
  56. done
  57. )
  58. fi
  59. # Copy documentation
  60. mkdir -p "${destdir}${docsdir}"
  61. cp -p $docs "${destdir}${docsdir}/"
  62. }