2023-08-27 17:56:02 +02:00
|
|
|
# Description: HTTP library implementation in C.
|
|
|
|
# URL: https://wiki.gnome.org/action/show/Projects/libsoup
|
2023-08-30 09:08:44 -04:00
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
2023-11-07 12:13:10 +00:00
|
|
|
# Depends on: glib-networking libpsl libxml2
|
|
|
|
# Optional: brotli krb5 vala
|
2023-08-27 17:56:02 +02:00
|
|
|
|
|
|
|
name=libsoup3
|
2023-11-07 12:13:10 +00:00
|
|
|
version=3.4.4
|
2023-08-27 17:56:02 +02:00
|
|
|
release=1
|
|
|
|
source=(https://download.gnome.org/sources/libsoup/${version%.*}/libsoup-$version.tar.xz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
prt-get isinst brotli && PKGMK_LIBSOUP3+=' -D brotli=enabled'
|
|
|
|
prt-get isinst vala && PKGMK_LIBSOUP3+=' -D vapi=enabled'
|
|
|
|
|
2023-08-30 09:08:44 -04:00
|
|
|
# turn off translations here, for a trivial reduction in CPU time
|
|
|
|
# compared to removing $PKG/usr/share/locale later
|
2023-09-16 06:36:40 -04:00
|
|
|
# (assumes the user does not have xDolmetscher in $PATH)
|
|
|
|
sed -i 's/xgettext/xDolmetscher/g' libsoup-$version/meson.build
|
2023-08-30 09:08:44 -04:00
|
|
|
|
2023-08-27 17:56:02 +02:00
|
|
|
meson setup build libsoup-$version ${PKGMK_LIBSOUP3} \
|
|
|
|
--prefix=/usr \
|
|
|
|
--buildtype=plain \
|
2023-11-07 12:13:10 +00:00
|
|
|
-D introspection=enabled \
|
2023-08-27 17:56:02 +02:00
|
|
|
-D b_lto=true \
|
|
|
|
-D b_pie=true \
|
|
|
|
--wrap-mode nodownload \
|
|
|
|
--auto-features disabled
|
|
|
|
|
2023-08-30 09:08:44 -04:00
|
|
|
ninja -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG ninja -C build install
|
2023-08-27 17:56:02 +02:00
|
|
|
}
|