# Description: Network-related giomodules for glib
# URL: https://git.gnome.org/browse/glib-networking/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: gnutls gsettings-desktop-schemas

name=glib-networking
version=2.78.1
release=1
source=(https://download.gnome.org/sources/$name/${version:0:4}/$name-$version.tar.xz)

build() {
  meson setup $name-$version build \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true \
    -D libproxy=disabled

  meson compile -C build
  DESTDIR=$PKG meson install -C build

  meson compile -C build -j ${JOBS:-1}
  DESTDIR=$PKG meson install -C build

  rm -r $PKG/usr/share/locale
}
