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