app=libqalculate
version=4.0.0
build=1sml
homepage="https://github.com/Qalculate/libqalculate"
download="https://github.com/Qalculate/libqalculate/releases/download/v$version/libqalculate-$version.tar.gz"
desc="Provides functions for a multi-purpose calculator"
requires="libxml2 curl"
   
build() {
  mkandenterbuilddir
  rm -rf $app-$version

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

  ./configure \
    --prefix="" \
    --disable-static

  make 
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}


sha512sums="
959204afa765e87c1b5ac2547ad15df0610ff6bb2a01a0fcb149b6dbe44021e29903e99c568999604a66b32d98a0cff86a4a4934c6b325436fab4600718a9b7b  libqalculate-4.0.0.tar.gz
"
