recipes: networking/wget2: Reconfigured
[dragora.git] / recipes / x-libs / at-spi2-core / recipe
blob94c71f6534b6946bfb61c4f529e9381bd8201847
1 # Build recipe for at-spi2-core.
3 # Copyright (C) 2018, MMPG <mmpg@vp.pl>
4 # Copyright (C) 2018-2019, 2021 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 # Exit immediately on any error
19 set -e
21 program=at-spi2-core
22 version=2.38.0
23 release=1
25 # Define a category for the output of the package name
26 pkgcategory=x-libs
28 tarname=${program}-${version}.tar.xz
30 # Remote source(s)
31 fetch="https://ftp.gnome.org/pub/gnome/sources/at-spi2-core/${version%.*}/$tarname"
33 description="
34 A part of the GNOME Accessibility Project.
36 It provides a Service Provider Interface for the Assistive Technologies
37 available on the GNOME platform and a library against which
38 applications can be linked.
41 homepage=https://wiki.gnome.org/Accessibility/
42 license=LGPLv2.1
44 docs="AUTHORS COPYING MAINTAINERS 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     mkdir BUILD
57     cd BUILD
59     CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
60     meson setup $configure_args \
61      --libdir /usr/lib${libSuffix} \
62      --buildtype=release \
63      --strip \
64      ..
66     ninja -j${jobs}
67     DESTDIR="$destdir" ninja -j${jobs} install
69     cd ..
71     # This is only for poseurs (or posers)..  Are you a POSEUR(tm)?
72     rm -rf "${destdir}/usr/lib/systemd"
73     rmdir "${destdir}/usr/lib" || true
75     # Copy documentation
76     mkdir -p "${destdir}${docsdir}"
77     cp -p $docs "${destdir}${docsdir}"