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
"
