diff options
author | Michel Zou | 2023-05-11 18:31:38 +0200 |
---|---|---|
committer | Michel Zou | 2023-05-11 18:31:38 +0200 |
commit | 72d68209a2a6c3ef55c3ce1ad49ffa053c0a295d (patch) | |
tree | bc8eec948ceaa52736c1cfaa448c875bad73e8ba /PKGBUILD | |
download | aur-mingw-w64-fast_float.tar.gz |
4.0.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..713cfece2143 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +pkgname=mingw-w64-fast_float +pkgver=4.0.0 +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=('9470f229b9ea8d116af7c92f2ab8e8ae6b3c3225d15081b859634328f28d4664') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd fast_float-$pkgver + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-cmake .. + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/fast_float-${pkgver}/build-${_arch}" + make install DESTDIR="${pkgdir}" + done +} |