mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-25 08:40:10 -07:00
51 lines
1.5 KiB
Bash
Executable File
51 lines
1.5 KiB
Bash
Executable File
#!/bin/sh -e
|
|
|
|
# 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
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--enable-xkb \
|
|
--enable-xinerama \
|
|
--enable-xrandr \
|
|
--enable-xfixes \
|
|
--enable-xcomposite \
|
|
--enable-xdamage \
|
|
--enable-x11-backend \
|
|
--disable-nls \
|
|
--enable-debug=no \
|
|
--disable-schemas-compile \
|
|
--disable-cups \
|
|
--disable-papi \
|
|
--disable-cloudprint \
|
|
--enable-introspection=no \
|
|
--enable-colord=no \
|
|
--enable-gtk-doc-html=no
|
|
|
|
make
|
|
make DESTDIR="$1" install
|
|
|
|
# Remove a boat load of HTML documentation.
|
|
rm -rf "$1/usr/share/gtk-doc"
|
|
|
|
# Remove gettext files.
|
|
rm -rf "$1/usr/share/gettext"
|