makedepends=(cmake doctest)

description="Fast and exact implementation of the C++ from_chars functions for float and double types"
url="https://github.com/fastfloat/fast_float"

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

name="fast_float"
version="8.2.2"
release=1

source=(https://github.com/fastfloat/fast_float/archive/refs/tags/v${version}.tar.gz)

build() { 
  cmake -B build \
        -S $name-$version \
        -DCMAKE_BUILD_TYPE=None \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -Wno-dev \
        -DFASTFLOAT_TEST=OFF \
        -DSYSTEM_DOCTEST=ON
  cmake --build build
  DESTDIR="$PKG" cmake --install build
}
