2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-23 15:50:06 -07:00
repo/extra/gtk+3/build

66 lines
1.6 KiB
Plaintext
Raw Normal View History

2019-07-27 09:18:06 -06:00
#!/bin/sh -e
2021-07-07 09:42:01 -06:00
patch -p1 < no-fribidi.patch
2021-07-09 04:38:22 -06:00
patch -p1 < schemas.patch
# GTK+3 on Wayland requires gsettings-desktop-schemas
# for gsettings to work correctly. Install the bare
# minimum needed (currently one schema).
#
2021-07-10 07:47:36 -06:00
# This fixes cursor icon issues and console spam when
2021-07-09 04:38:22 -06:00
# running Firefox.
(
cd schemas
meson \
--prefix=/usr \
-Dintrospection=false \
. output
export DESTDIR="$1"
ninja -C output
ninja -C output install
)
2021-07-07 09:42:01 -06:00
# Remove configure check for atk-bridge and fribidi.
sed -e 's/\(ATK_PACKAGES="atk\) atk-bridge-2.0"/\1"/' \
-e 's/fribidi >= 0\.19\.7//g' \
configure > _
2021-07-03 15:44:07 -06:00
mv -f _ configure
chmod +x configure
2019-11-17 18:17:44 -07:00
2021-07-03 15:44:07 -06:00
# Remove atk-bridge code.
sed '/<atk-bridge.h>/d;/atk_bridge_adaptor_init/d' \
gtk/a11y/gtkaccessibility.c > _
mv -f _ gtk/a11y/gtkaccessibility.c
2019-07-27 10:35:15 -06:00
2020-01-12 01:20:48 -07:00
# Don't build GTK examples/demos/testsuite.
2021-07-03 15:44:07 -06:00
sed 's/demos tests testsuite examples//;s/docs \(m4macros\)/\1/' Makefile.in > _
mv -f _ Makefile.in
2020-01-12 01:20:48 -07:00
2019-07-27 09:18:06 -06:00
./configure \
--prefix=/usr \
2019-07-27 09:24:23 -06:00
--sysconfdir=/etc \
--localstatedir=/var \
2021-07-08 01:40:03 -06:00
--enable-wayland-backend \
--disable-x11-backend \
2019-07-27 10:17:49 -06:00
--disable-schemas-compile \
2019-07-27 09:18:06 -06:00
--disable-cups \
--disable-papi \
--disable-cloudprint \
2020-01-12 01:20:48 -07:00
--disable-glibtest \
2020-05-11 23:39:46 -06:00
--disable-nls \
2020-02-07 16:40:04 -07:00
--disable-installed-tests \
2019-07-27 09:18:06 -06:00
--enable-introspection=no \
--enable-colord=no \
--enable-gtk-doc-html=no
make
make DESTDIR="$1" install
2020-05-03 11:59:23 -06:00
# We don't compile with librsvg which leads to this
# utility solely causing compiler errors for some
# packages. It has no use at all.
2020-05-17 01:39:05 -06:00
rm -f "$1/usr/bin/gtk-encode-symbolic-svg"