# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libsoup
version=2.74.2
build=1sml
homepage="https://wiki.gnome.org/Projects/libsoup"
download="https://slackware.uk/slackware/slackware-15.0/source/l/libsoup/libsoup-$version.tar.xz"
desc="HTTP client/server library"
requires="libxml2 gnutls sqlite brotli vala gobject-introspection glib-networking"

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

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

build() {
  mkdir -p smbuild && cd smbuild
  meson setup \
    --prefix="/" \
    -Dtls_check=false \
    -Dvapi=disabled \
    -Dsysprof=disabled \
    -Dtests=false \
    ..

    ninja
    DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
2554f4f214536819d08bc5a0ebceca85fd339e6efcea8c2afc6559ade56118691fc48f226ed210988edc592b23fc8a9094b47fc22b4d028c0df23158c4086431  libsoup-2.74.2.tar.lz
"
