2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-10-27 13:26:28 -06:00
repo/xorg/gtk+2/build

26 lines
553 B
Plaintext
Raw Normal View History

2019-08-03 00:30:03 -06:00
#!/bin/sh -e
2019-08-04 15:57:30 -06:00
triplet=$(cc -dumpmachine)
2019-08-03 00:30:03 -06:00
export CFLAGS="$CFLAGS -UGDK_PIXBUF_DISABLE_DEPRECATED"
2019-08-04 15:57:30 -06:00
2019-08-03 00:30:03 -06:00
./configure \
2019-08-04 15:57:30 -06:00
--build="$triplet" \
--host="$triplet" \
2019-08-03 00:30:03 -06:00
--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/"
2019-08-04 15:57:30 -06:00
rm -f "$1/usr/bin/gtk-update-icon-cache"