etc: Enable a tty for a serial port by default.
[dragora.git] / recipes / x-libs / atk / recipe
blob4fbe8c634c6273242eb92c130fc9314a746bebc8
1 # Build recipe for ATK.
3 # Copyright (C) 2018, MMPG <mmpg@vp.pl>
4 # Copyright (C) 2018-2019, 2021 Matias Fonzo, <selk@dragora.org>.
5 # Copyright (C) 2022 Matias Fonzo, <selk@dragora.org>.
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 #    http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 # Exit immediately on any error
20 set -e
22 program=atk
23 version=2.38.0
24 release=1
26 # Define a category for the output of the package name
27 pkgcategory=x-libs
29 tarname=${program}-${version}.tar.xz
31 # Remote source(s)
32 fetch="https://ftp.gnome.org/pub/gnome/sources/atk/${version%.*}/$tarname"
34 description="
35 A library of accessibility functions.
37 It is widely used by the GTK+ toolkit.
40 homepage=https://developer.gnome.org/atk/
41 license=LGPLv2+
43 # Source documentation
44 docs="AUTHORS COPYING NEWS README"
45 docsdir="${docdir}/${program}-${version}"
47 build()
49     unpack "${tardir}/$tarname"
51     cd "$srcdir"
53     # Set sane permissions
54     chmod -R u+w,go-w,a+rX-s .
56     rm -rf BUILD
57     mkdir BUILD
58     cd BUILD
60     CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
61     meson setup $configure_args \
62      --libdir /usr/lib${libSuffix} \
63      --buildtype=release \
64      --strip \
65      ..
67     ninja -j${jobs}
68     DESTDIR="$destdir" ninja -j${jobs} install
70     cd ..
72     # Copy documentation
73     mkdir -p "${destdir}/$docsdir"
74     cp -p $docs "${destdir}/$docsdir"