makedepends=(cmake)

description="A library that facilitates binary-to-decimal and decimal-to-binary routines for IEEE doubles"
url="https://github.com/google/double-conversion"

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

name=double-conversion
version=3.4.0

source=(https://github.com/google/double-conversion/archive/v$version/double-conversion-$version.tar.gz)

build() {

  mkdir -pv build && cd build

  cmake -D CMAKE_INSTALL_PREFIX=/usr \
        -D BUILD_SHARED_LIBS=ON      \
        -D BUILD_TESTING=ON          \
        ../$name-$version

  make
  make DESTDIR=$PKG install

}
