recipe 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # Build recipe for fossil.
  2. #
  3. # Copyright (c) 2022 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=fossil-src
  19. pkgname=fossil
  20. version=2.19
  21. release=1
  22. # Define a category for the output of the package name
  23. pkgcategory=devel
  24. tarname=${program}-${version}.tar.gz
  25. # Remote source(s)
  26. fetch=https://www.fossil-scm.org/home/tarball/1e131febd3fbb028d00cab6d020214e8fe36be95daaf93237523c29c542e9a5f/$tarname
  27. homepage=https://www.fossil-scm.org
  28. description="
  29. A simple, high-reliability, distributed version control system.
  30. Fossil is a distributed version control system (DVCS) with built-in forum,
  31. wiki, ticket tracker, CGI/HTTP interface, and HTTP server.
  32. For more information, please visit:
  33. $homepage
  34. "
  35. license="BSD 2-clause"
  36. # Source documentation
  37. docs="COPYRIGHT* README.md VERSION"
  38. docsdir="${docdir}/${pkgname}-${version}"
  39. build()
  40. {
  41. unpack "${tardir}/$tarname"
  42. cd "$srcdir"
  43. # Set sane permissions
  44. chmod -R u+w,go-w,a+rX-s .
  45. ./configure CPPFLAGS="$QICPPFLAGS" \
  46. CFLAGS="$QICFLAGS" CXXFLAGS="$QICXXFLAGS" LDFLAGS="$QILDFLAGS" \
  47. $configure_args \
  48. --libdir=/usr/lib${libSuffix} \
  49. --mandir=$mandir \
  50. --with-openssl=/usr \
  51. --with-zlib=/usr \
  52. --with-sqlite=/usr \
  53. --with-tcl=/usr \
  54. --with-tcl-private-stubs \
  55. --with-mman \
  56. --json \
  57. --disable-internal-sqlite \
  58. --build="$(gcc -dumpmachine)"
  59. make -j${jobs} V=1
  60. make -j${jobs} DESTDIR="$destdir" install
  61. # Install and compress manual page
  62. install -p -m 644 fossil.1 -D "${destdir}/${mandir}/man1/fossil.1"
  63. lzip -9 "${destdir}/${mandir}/man1/fossil.1"
  64. # Copy documentation
  65. mkdir -p "${destdir}/$docsdir"
  66. cp -p $docs "${destdir}/$docsdir"
  67. }