# Maintainer: PktSurf <smlinux@pktsurf.in>
app=glib-networking
version=2.76.0
build=1sml
homepage="https://gitlab.gnome.org/GNOME/glib-networking"
download="https://gitlab.gnome.org/GNOME/glib-networking/-/archive/$version/glib-networking-$version.tar.bz2"
desc="Network extensions for GLib"
requires="ca-certificates glib gnutls p11-kit"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  mkdir -p smbuild && cd smbuild
  meson .. --prefix=/ \
    -Dlibproxy=disabled

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
412cb317605ad3074dcc45144ae41bb64bd3d67be12a910efb863bcb04dc18a0fafcbfb1b3c77cf21f121b2346246c3944e04cc67e9259bb12d3b5a8942f1c96  glib-networking-2.76.0.tar.lz
"
