recipes: libs/alsa-lib: upgraded to version 1.1.8
[dragora.git] / recipes / x-libs / pango / recipe
blob0157325447e980229cede8bcf52e906056cbab16
1 # Build recipe for Pango.
3 # Copyright (C) 2018, MMPG <mmpg@vp.pl>
4 # Copyright (C) 2018, Matias Fonzo, <selk@dragora.org>.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 #    http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 program=pango
19 version=1.42.4
20 release=1
22 # Set 'outdir' for a nice and well-organized output directory
23 outdir="${outdir}/${arch}/x-libs"
25 tarname=${program}-${version}.tar.xz
27 # Remote source(s)
28 fetch=http://ftp.gnome.org/pub/gnome/sources/pango/1.42/$tarname
30 description="
31 A library for layout and rendering of text.
33 Pango can be used anywhere that text layout is needed; however, most of
34 the work on Pango was done using the GTK+ widget toolkit as a test
35 platform.  Pango forms the core of text and font handling for GTK+-2.
38 homepage=http://www.pango.org/Introduction/
39 license=LGPLv2+
41 # Copy documentation
42 docs="AUTHORS COPYING HACKING MAINTAINERS NEWS README THANKS"
43 docsdir="${docdir}/${program}-${version}"
45 build()
47     set -e
49     unpack "${tardir}/$tarname"
51     cd "$srcdir"
53     # Set sane permissions
54     chmod -R u+w,go-w,a+rX-s .
56     mkdir -p build
57     cd build
59     CFLAGS="$QICFLAGS" CXXFLAGS="$QICXXFLAGS" LDFLAGS="$QILDFLAGS" \
60     meson setup $configure_args \
61      --libdir /usr/lib${libSuffix} \
62      --mandir $mandir \
63      --buildtype=release \
64      --strip \
65      ..
67     ninja
68     DESTDIR="$destdir" ninja install
70     cd ..
72     # Copy documentation
73     mkdir -p "${destdir}${docsdir}"
74     cp -p $docs "${destdir}${docsdir}"
76     # Compress and link man pages (if needed)
77     if test -d "${destdir}/$mandir"
78     then
79         (
80             cd "${destdir}/$mandir"
81             find . -type f -exec lzip -9 '{}' +
82             find . -type l | while read -r file
83             do
84                 ln -sf "$(readlink -- "$file").lz" "${file}.lz"
85                 rm -- "$file"
86             done
87         )
88     fi