23 lines
590 B
Plaintext
23 lines
590 B
Plaintext
# Description: a float-to-string conversion algorithm based on Schubfach
|
|
# URL: https://github.com/jk-jeon/dragonbox
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: cmake ninja
|
|
|
|
name=dragonbox
|
|
version=1.1.3
|
|
release=1
|
|
source=(https://github.com/jk-jeon/dragonbox/archive/$version/$name-$version.tar.gz
|
|
include.patch)
|
|
|
|
build() {
|
|
patch -Np1 -d $name-$version -i $SRC/include.patch
|
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
}
|