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
26 # Define a category for the output of the package name
29 tarname=${program}-${version}.tar.xz
32 fetch="https://ftp.gnome.org/pub/gnome/sources/atk/${version%.*}/$tarname"
35 A library of accessibility functions.
37 It is widely used by the GTK+ toolkit.
40 homepage=https://developer.gnome.org/atk/
43 # Source documentation
44 docs="AUTHORS COPYING NEWS README"
45 docsdir="${docdir}/${program}-${version}"
49 unpack "${tardir}/$tarname"
53 # Set sane permissions
54 chmod -R u+w,go-w,a+rX-s .
60 CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
61 meson setup $configure_args \
62 --libdir /usr/lib${libSuffix} \
68 DESTDIR="$destdir" ninja -j${jobs} install
73 mkdir -p "${destdir}/$docsdir"
74 cp -p $docs "${destdir}/$docsdir"