2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-15 11:10:08 -07:00
repo/extra/gtk+3/build

59 lines
1.4 KiB
Plaintext
Raw Normal View History

2019-07-27 09:18:06 -06:00
#!/bin/sh -e
for p in *.patch; do
patch -p1 < "$p"
done
2021-07-09 04:38:22 -06:00
2022-05-18 13:57:36 -06:00
# Don't enable native language support and don't compile schemas.
sed -e '/compile_schemas/s/true/false/' \
-e '/ENABLE_NLS/s/1/0/' \
-e "/subdir('po/d" \
meson.build > _
mv -f _ meson.build
meson setup \
-Dprefix=/usr \
-Dx11_backend=false \
-Dwayland_backend=true \
-Dprint_backends=file,lpr \
-Dcolord=no \
-Dintrospection=false \
-Ddemos=false \
-Dexamples=false \
-Dtests=false \
-Dlibepoxy:default_library=static \
-Dlibepoxy:egl=yes \
-Dlibepoxy:tests=false \
-Dlibepoxy:glx=no \
-Dlibepoxy:x11=false \
--force-fallback-for=libepoxy \
output
ninja -C output
2022-06-27 22:07:26 -06:00
meson install -C output --skip-subprojects
2020-05-03 11:59:23 -06:00
2021-08-08 22:46:48 -06:00
# GTK+3 on Wayland requires gsettings-desktop-schemas for gsettings to work
# correctly. Under X11 it made use of xsettings but this is no longer the case.
(
cd schemas
meson \
--prefix=/usr \
-Dintrospection=false \
. output
ninja -C output
ninja -C output install
)
# 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"
2021-08-08 22:46:48 -06:00
2022-06-10 01:05:52 -06:00
# Remove libepoxy and its references from installed pkg-config files. The build
# system should have done this for us as it is statically linked.
2021-08-08 23:08:11 -06:00
for f in "$1/usr/lib/pkgconfig/"*.pc; do
sed 's/epoxy >= 1.4//' "$f" > _
mv -f _ "$f"
done