blob: a67a3e3a9c24f8fa0c2609895d82b30151fd5d07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
pkgname=mingw-w64-fast_float
pkgver=8.3.1
pkgrel=1
arch=(any)
url="https://github.com/fastfloat/fast_float/"
license=('MIT' 'Apache-2.0')
pkgdesc='Fast and exact implementation of the C++ from_chars functions:4x faster than strtod (mingw-w64)'
depends=('mingw-w64-crt')
makedepends=('mingw-w64-cmake')
options=('!buildflags' '!strip' 'staticlibs')
source=("https://github.com/fastfloat/fast_float/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('7ff47ad261068517561beb0a7c1d57131f71b8be19bdbac2857c6a517a2eb53c')
_architectures=${MINGW_W64_ARCHS:-x86_64-w64-mingw32}
build() {
cd fast_float-$pkgver
for _arch in ${_architectures}; do
${_arch}-cmake -B build-${_arch} .
make -C build-${_arch}
done
}
package() {
for _arch in ${_architectures}; do
cd "${srcdir}/fast_float-${pkgver}/build-${_arch}"
make install DESTDIR="${pkgdir}"
done
}
|