2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-22 07:10:16 -07:00
repo/xorg/gtk+3/build

51 lines
1.5 KiB
Plaintext
Raw Normal View History

2019-07-27 09:18:06 -06:00
#!/bin/sh -e
2019-07-27 10:35:15 -06:00
# Patch out 'dbus' (taken from Sabotage Linux).
cat << EOF > gtk/gtkmountoperation.c
#define GMountOperation void
#define GtkMountOperation void
#define GtkWindow void
#define GdkScreen void
#define gboolean int
#define GType unsigned long /* size_t */
#define P __attribute__ ((visibility ("default")))
extern GType g_mount_operation_get_type();
P GType gtk_mount_operation_get_type() { return g_mount_operation_get_type(); }
P GMountOperation *gtk_mount_operation_new (GtkWindow *parent) { return 0; }
P gboolean gtk_mount_operation_is_showing (GtkMountOperation *op) { return 0; }
P void gtk_mount_operation_set_parent (GtkMountOperation *op, GtkWindow *parent) {}
P GtkWindow *gtk_mount_operation_get_parent (GtkMountOperation *op) { return 0; }
P void gtk_mount_operation_set_screen (GtkMountOperation *op, GdkScreen *screen){}
P GdkScreen *gtk_mount_operation_get_screen (GtkMountOperation *op){ return 0; }
EOF
2019-07-27 09:18:06 -06:00
./configure \
--prefix=/usr \
2019-07-27 09:24:23 -06:00
--sysconfdir=/etc \
--localstatedir=/var \
--enable-xkb \
--enable-xinerama \
--enable-xrandr \
--enable-xfixes \
--enable-xcomposite \
--enable-xdamage \
--enable-x11-backend \
2019-07-27 09:18:06 -06:00
--disable-nls \
--enable-debug=no \
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 \
--enable-introspection=no \
--enable-colord=no \
--enable-gtk-doc-html=no
make
make DESTDIR="$1" install
2019-07-27 15:07:23 -06:00
# Remove a boat load of HTML documentation.
2019-08-18 18:20:55 -06:00
rm -rf "$1/usr/share/gtk-doc"
# Remove gettext files.
rm -rf "$1/usr/share/gettext"