2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-04 23:12:28 +00:00
repo/extra/gtk+3/build
2021-07-07 18:42:01 +03:00

50 lines
1.2 KiB
Bash
Executable File

#!/bin/sh -e
patch -p1 < no-fribidi.patch
# 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 > _
mv -f _ configure
chmod +x configure
# Remove atk-bridge code.
sed '/<atk-bridge.h>/d;/atk_bridge_adaptor_init/d' \
gtk/a11y/gtkaccessibility.c > _
mv -f _ gtk/a11y/gtkaccessibility.c
# Don't build GTK examples/demos/testsuite.
sed 's/demos tests testsuite examples//;s/docs \(m4macros\)/\1/' Makefile.in > _
mv -f _ Makefile.in
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-xkb \
--enable-xinerama \
--enable-xrandr \
--enable-xfixes \
--enable-xcomposite \
--enable-xdamage \
--enable-x11-backend \
--disable-schemas-compile \
--disable-cups \
--disable-papi \
--disable-cloudprint \
--disable-glibtest \
--disable-nls \
--disable-installed-tests \
--enable-introspection=no \
--enable-colord=no \
--enable-gtk-doc-html=no
make
make DESTDIR="$1" 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.
rm -f "$1/usr/bin/gtk-encode-symbolic-svg"