recipe 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # Build recipe for claws-mail.
  2. #
  3. # Copyright (c) 2018-2019, 2021-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=claws-mail
  19. version=4.0.0
  20. release=1
  21. # Define a category for the output of the package name
  22. pkgcategory=x-apps
  23. tarname=${program}-${version}.tar.xz
  24. # Remote source(s)
  25. fetch=https://www.claws-mail.org/releases/$tarname
  26. description="
  27. An email client (and news reader), based on GTK+.
  28. Claws Mail is an email client (and news reader), based on GTK+,
  29. featuring: Quick response, Graceful, and sophisticated interface
  30. Easy configuration, intuitive operation, Abundant features,
  31. Extensibility, Robustness and stability.
  32. The appearance and interface are designed to be familiar to new users
  33. coming from other popular email clients, as well as experienced users.
  34. Almost all commands are accessible with the keyboard.
  35. The messages are managed in the standard MH format, which features
  36. fast access and data security. You'll be able to import your emails
  37. from almost any other email client, and export them just as easily.
  38. Lots of extra functionality, like an RSS aggregator, calendar, or
  39. laptop LED handling, are provided by extra plugins.
  40. Claws Mail is distributed under the GPL.
  41. "
  42. homepage=https://claws-mail.org/
  43. license=GPLv3+
  44. # Source documentation
  45. docs="AUTHORS COPYING ChangeLog NEWS README RELEASE_NOTES TODO"
  46. docsdir="${docdir}/${program}-${version}"
  47. build()
  48. {
  49. unpack "${tardir}/$tarname"
  50. cd "$srcdir"
  51. # Set sane permissions
  52. chmod -R u+w,go-w,a+rX-s .
  53. ./configure CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  54. $configure_args \
  55. --libdir=/usr/lib${libSuffix} \
  56. --mandir=$mandir \
  57. --docdir=$docsdir \
  58. --with-manualdir=${docsdir}/html \
  59. --enable-static=no \
  60. --enable-shared=yes \
  61. --build="$(gcc -dumpmachine)"
  62. make -j${jobs} V=1
  63. make -j${jobs} DESTDIR="$destdir" install-strip
  64. lzip -9 "${destdir}/${mandir}"/*/*.?
  65. # Copy documentation
  66. mkdir -p "${destdir}/$docsdir"
  67. cp -p $docs "${destdir}/$docsdir"
  68. }