blob: 6163764d12775b7492fe4789b45e1861d9326d1f (
plain)
1 # Description: HTTP library implementation in C.
2 # URL: https://wiki.gnome.org/action/show/Projects/libsoup
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: glib-networking libnghttp2 libpsl libxml2
5 # Optional: brotli gobject-introspection krb5 vala
6
7 name=libsoup3
8 version=3.2.2
9 release=1
10 source=(https://download.gnome.org/sources/libsoup/${version%.*}/libsoup-$version.tar.xz)
11
12 build() {
13 prt-get isinst brotli && PKGMK_LIBSOUP3+=' -D brotli=enabled'
14 prt-get isinst gobject-introspection && PKGMK_LIBSOUP3+=' -D introspection=enabled'
15 prt-get isinst vala && PKGMK_LIBSOUP3+=' -D vapi=enabled'
16
17 meson setup build libsoup-$version ${PKGMK_LIBSOUP3} \
18 --prefix=/usr \
19 --buildtype=plain \
20 -D b_lto=true \
21 -D b_pie=true \
22 --wrap-mode nodownload \
23 --auto-features disabled
24
25 sed -i 's|-R/usr/lib||g' build/build.ninja
26
27 meson compile -C build -j ${JOBS:-1}
28 DESTDIR=$PKG meson install -C build
29
30 rm -r $PKG/usr/share/locale
31 }
|