# Maintainer: PktSurf <smlinux@pktsurf.in>
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"
   
prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

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

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

  make 
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
1a72e9338716481c882e108e9b2c148288dd7c507f353067a9b65d7cb962ac01876fe59b8b760a63cfc46349ccfc1d91ff39a0d6610f66439d7619cb2e648832  libqalculate-4.0.0.tar.lz
"
