summaryrefslogtreecommitdiff
path: root/source/l/libsoup3
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2022-07-12 04:20:40 +0000
committerEric Hameleers <alien@slackware.com>2022-07-12 17:00:14 +0200
commitbee3d6c81b37e0eb578c0aaf4dca8202b62ab3c0 (patch)
tree00d52fd12eeac16109cf7b5f8fd01169ce97a4d8 /source/l/libsoup3
parent18e0abe6897149ff1c55e9dd54130df51286abc7 (diff)
downloadcurrent-bee3d6c81b37e0eb578c0aaf4dca8202b62ab3c0.tar.gz
Tue Jul 12 04:20:40 UTC 202220220712042040
d/vala-0.56.1-x86_64-1.txz: Upgraded. l/at-spi2-core-2.44.1-x86_64-1.txz: Upgraded. l/atk-2.38.0-x86_64-1.txz: Upgraded. l/glib-networking-2.72.1-x86_64-1.txz: Upgraded. l/glib2-2.72.3-x86_64-1.txz: Upgraded. l/gobject-introspection-1.72.0-x86_64-1.txz: Upgraded. l/gtk4-4.6.6-x86_64-1.txz: Upgraded. l/gvfs-1.50.2-x86_64-1.txz: Upgraded. l/librsvg-2.54.4-x86_64-1.txz: Upgraded. l/libsoup3-3.0.7-x86_64-1.txz: Added. l/pygobject3-3.42.1-x86_64-1.txz: Upgraded. l/vte-0.68.0-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/l/libsoup3')
-rwxr-xr-xsource/l/libsoup3/libsoup3.SlackBuild119
-rw-r--r--source/l/libsoup3/slack-desc19
2 files changed, 138 insertions, 0 deletions
diff --git a/source/l/libsoup3/libsoup3.SlackBuild b/source/l/libsoup3/libsoup3.SlackBuild
new file mode 100755
index 00000000..cc481f05
--- /dev/null
+++ b/source/l/libsoup3/libsoup3.SlackBuild
@@ -0,0 +1,119 @@
+#!/bin/bash
+#
+# Slackware build script for libsoup
+#
+# Copyright 2009-2010 Erik W. Hanson, Minneapolis, MN, USA
+# Copyright 2020 Patrick J. Volkerding, Sebeka, MN, USA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PKGNAM=libsoup3
+SRCNAM=libsoup
+VERSION=${VERSION:-$(echo $SRCNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
+BUILD=${BUILD:-1}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
+ exit 0
+fi
+
+NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
+
+TMP=${TMP:-/tmp}
+PKG=$TMP/package-$PKGNAM
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG
+cd $TMP
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.?z || exit 1
+cd $SRCNAM-$VERSION || exit 1
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+# Configure, build, and install:
+export CFLAGS="$SLKCFLAGS"
+export CXXFLAGS="$SLKCFLAGS"
+mkdir meson-build
+cd meson-build
+meson setup \
+ --prefix=/usr \
+ --libdir=lib${LIBDIRSUFFIX} \
+ --libexecdir=/usr/libexec \
+ --bindir=/usr/bin \
+ --sbindir=/usr/sbin \
+ --includedir=/usr/include \
+ --datadir=/usr/share \
+ --mandir=/usr/man \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --buildtype=release \
+ -Dgssapi=disabled \
+ -Dvapi=enabled \
+ .. || exit 1
+ "${NINJA:=ninja}" $NUMJOBS || exit 1
+ DESTDIR=$PKG $NINJA install || exit 1
+cd ..
+
+# Don't ship .la files:
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
+mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
+cp -a COPYING* AUTHORS NEWS README* $PKG/usr/doc/$PKGNAM-$VERSION
+
+# If there's a ChangeLog, installing at least part of the recent history
+# is useful, but don't let it get totally out of control:
+if [ -r ChangeLog ]; then
+ DOCSDIR=$(echo $PKG/usr/doc/${PKGNAM}-$VERSION)
+ cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog
+ touch -r ChangeLog $DOCSDIR/ChangeLog
+fi
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz
diff --git a/source/l/libsoup3/slack-desc b/source/l/libsoup3/slack-desc
new file mode 100644
index 00000000..c8579c99
--- /dev/null
+++ b/source/l/libsoup3/slack-desc
@@ -0,0 +1,19 @@
+# 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 ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+libsoup3: libsoup3 (an HTTP client/server library, v3)
+libsoup3:
+libsoup3: Soup is an HTTP client/server library implementation in C. It uses
+libsoup3: GObjects and the glib main loop to integrate well with GTK+
+libsoup3: applications, and has a synchronous API suitable for use in threaded
+libsoup3: applications.
+libsoup3:
+libsoup3:
+libsoup3:
+libsoup3:
+libsoup3: