# Maintainer: PktSurf <smlinux@pktsurf.in>
app=rest
version=0.8.1
build=1sml
homepage="https://gitlab.gnome.org/GNOME/librest"
download="https://gitlab.gnome.org/GNOME/librest/-/archive/$version/librest-$version.tar.bz2"
desc="Library for accessing RESTful web services"
requires="glib libsoup libxml2 gobject-introspection"

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

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

build() {
  ./configure \
    --prefix="" 

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
d24a506cff0c62c621267f74cbff3121c5c1bfdd141a3ad7656e3cd1e122d10f8ab3a46e8cf36717b0cadc1c83bf4c5f6735a98d655034a56260b45711ac1ed9  rest-0.8.1.tar.lz
"
