mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-10 02:45:15 +00:00
Added libsoup3 for building webkit2gtk with GTK4
This commit is contained in:
55
build-scripts/libsoup3.build
Normal file
55
build-scripts/libsoup3.build
Normal file
@ -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}/*
|
Reference in New Issue
Block a user