makedepends=(gobject-introspection gtk-doc glib libxml2 libsoup2 python-setuptools)

description="Library for accessing RESTful web services (legacy)"
url="https://gitlab.gnome.org/GNOME/librest"

packager="Great-OS Team"
maintainer="Great-OS Team"

name="librest07"
version="0.8.1"
release=2

source=(https://gitlab.gnome.org/GNOME/librest/-/archive/$version/librest-$version.tar.gz)

prepare() { 
  cd librest-$version

  NOCONFIGURE=1 ./autogen.sh
}

build() { 
  cd librest-$version

  ./configure --prefix=/usr \
              --sysconfdir=/etc \
              --enable-gtk-doc

  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool;

  make
  make DESTDIR="$PKG" install
}
