contrib/libsoup3/Pkgfile

33 lines
1.0 KiB
Plaintext
Raw Normal View History

# Description: HTTP library implementation in C.
# URL: https://wiki.gnome.org/action/show/Projects/libsoup
2023-08-30 15:08:44 +02:00
# Maintainer: John McQuah, jmcquah at disroot dot org
2023-11-07 13:13:10 +01:00
# Depends on: glib-networking libpsl libxml2
# Optional: brotli krb5 vala
name=libsoup3
2024-05-20 16:36:13 +02:00
version=3.5.1
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 15:08:44 +02:00
# turn off translations here, for a trivial reduction in CPU time
# compared to removing $PKG/usr/share/locale later
2023-09-16 12:36:40 +02:00
# (assumes the user does not have xDolmetscher in $PATH)
sed -i 's/xgettext/xDolmetscher/g' libsoup-$version/meson.build
2023-08-30 15:08:44 +02:00
meson setup build libsoup-$version ${PKGMK_LIBSOUP3} \
--prefix=/usr \
--buildtype=plain \
2023-11-07 13:13:10 +01:00
-D introspection=enabled \
-D b_lto=true \
-D b_pie=true \
--wrap-mode nodownload \
--auto-features disabled
2023-08-30 15:08:44 +02:00
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
}