2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-16 04:42:26 +00:00
repo/xorg/gtk+2/build

26 lines
553 B
Plaintext
Raw Normal View History

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