32 lines
954 B
Plaintext
32 lines
954 B
Plaintext
# Description: HTTP library implementation in C.
|
|
# URL: https://wiki.gnome.org/action/show/Projects/libsoup
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: glib-networking libnghttp2 libpsl libxml2
|
|
# Optional: brotli gobject-introspection krb5 vala
|
|
|
|
name=libsoup3
|
|
version=3.4.2
|
|
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 gobject-introspection && PKGMK_LIBSOUP3+=' -D introspection=enabled'
|
|
prt-get isinst vala && PKGMK_LIBSOUP3+=' -D vapi=enabled'
|
|
|
|
meson setup build libsoup-$version ${PKGMK_LIBSOUP3} \
|
|
--prefix=/usr \
|
|
--buildtype=plain \
|
|
-D b_lto=true \
|
|
-D b_pie=true \
|
|
--wrap-mode nodownload \
|
|
--auto-features disabled
|
|
|
|
sed -i 's|-R/usr/lib||g' build/build.ninja
|
|
|
|
meson compile -C build -j ${JOBS:-1}
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
rm -r $PKG/usr/share/locale
|
|
}
|