blob: 09d50ee254eb4ef020fbb0086ac830c9abe65d4b (
plain)
1 # Description: a float-to-string conversion algorithm based on Schubfach
2 # URL: https://github.com/jk-jeon/dragonbox
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: cmake ninja
5
6 name=dragonbox
7 version=1.1.3
8 release=1
9 source=(https://github.com/jk-jeon/dragonbox/archive/$version/$name-$version.tar.gz
10 include.patch)
11
12 build() {
13 patch -Np1 -d $name-$version -i $SRC/include.patch
14
15 cmake -S $name-$version -B build -G Ninja \
16 -D CMAKE_INSTALL_PREFIX=/usr \
17 -D CMAKE_INSTALL_LIBDIR=lib \
18 -Wno-dev
19
20 cmake --build build
21 DESTDIR=$PKG cmake --install build
22 }
|