recipe 2.5 KB

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