app=libsoup
version=2.58.2
build=1sml
homepage="https://wiki.gnome.org/Projects/libsoup"
download="https://download.gnome.org/sources/libsoup/2.58/libsoup-2.58.2.tar.xz"
desc="HTTP client/server library"
requires="libxml2 gnutls sqlite brotli vala gobject-introspection glib-networking"

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

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

  ./configure \
    --prefix="" \
    --with-gnome \
    --disable-nls \
    --disable-static \
    --disable-gtk-doc 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
aeec72bd6db23b034988553219c4b1c91469214b35d087b64a86279fc1fb7edde3cee479c1a11a1835b0a676cdf1ebbd885479ec288b48dc25680291b8f60a3b  libsoup-2.58.2.tar.lz
"
