2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-24 08:20:05 -07:00
repo/xorg/gtk+2/build
2019-08-05 09:39:30 +03:00

26 lines
553 B
Bash
Executable File

#!/bin/sh -e
triplet=$(cc -dumpmachine)
export CFLAGS="$CFLAGS -UGDK_PIXBUF_DISABLE_DEPRECATED"
./configure \
--build="$triplet" \
--host="$triplet" \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-nls \
--enable-debug=no \
--disable-gtk-doc \
--with-xinput=yes
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
sed -i -e 's/demos //g' Makefile
make
make DESTDIR="$1" install
# Remove a boat load of HTML documentation.
rm -rf "$1/gtk-doc/"
rm -f "$1/usr/bin/gtk-update-icon-cache"