From a117e76f8162e1447b9f41785485e316e5655eca Mon Sep 17 00:00:00 2001 From: dslm4515 <27793627+dslm4515@users.noreply.github.com> Date: Mon, 7 Mar 2022 09:12:27 -0600 Subject: [PATCH] Added libsoup3 for building webkit2gtk with GTK4 --- build-scripts/libsoup3.build | 55 ++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 build-scripts/libsoup3.build diff --git a/build-scripts/libsoup3.build b/build-scripts/libsoup3.build new file mode 100644 index 0000000..22bd939 --- /dev/null +++ b/build-scripts/libsoup3.build @@ -0,0 +1,55 @@ +#! /bin/bash + +# libsoup +# Source: https://download.gnome.org/sources/libsoup/3.0/libsoup-3.0.4.tar.xz +# +# $BUILD = Directory to temporarily install +# $PKGS = Directory to store built packages +# +# DEPS +# Required: GLib-networking, libpsl, libxml2, SQLite +# Recommended: Gobject-introspection, sysprof, Vala +# Optional: Apache, Brotli, cURL, Kerberos V5, GTK-Doc, Samba + + +# If coptimizing with GCC: +export CFLAGS="-march=native -mtune=native -pipe " +export CFLAGS+="-O3 -Os -fdata-sections -ffat-lto-objects " +export CFLAGS+="-ffunction-sections -flto=auto -fno-semantic-interposition " +export LDFLAGS="-flto=auto -Wl,-O2 -Wl,--as-needed " + +mkdir BUILD && cd BUILD && +meson --prefix=/usr \ + -Dtls_check=false \ + -Dintrospection=enabled \ + -Dvapi=enabled \ + -Dsysprof=disabled .. && +read -p "Compile?" && ninja -j2 && + +sudo -S DESTDIR=$BUILD ninja install && + +cd $BUILD && sudo -S mkdir -v ${BUILD}/install && +cat > /tmp/slack-desc << "EOF" +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +libsoup3: libsoup3 (an HTTP client/server library) +libsoup3: +libsoup3: Libsoup is an HTTP library implementation in C. It was originally part +libsoup3: of a SOAP (Simple Object Access Protocol) implementation called Soup, +libsoup3: but the SOAP and non-SOAP parts have now been split into separate +libsoup3: packages. +libsoup3: +libsoup3: +libsoup3: +libsoup3: libsoup home: http://live.gnome.org/LibSoup +libsoup3: +EOF +sudo -S mv -v /tmp/slack-desc install/ && +sudo -S makepkg -l y -c n $PKGS/libsoup-3.0.4-$(uname -m)-mlfs.txz && +sudo -S rm -rf ${BUILD}/*