Skip to content

Commit

Permalink
Add 'fast_float/' from commit '2b2a1e6fd7b0f6f81e1a2015506b76fd8166b0b6'
Browse files Browse the repository at this point in the history
git-subtree-dir: fast_float
git-subtree-mainline: ef659e4
git-subtree-split: 2b2a1e6
  • Loading branch information
eclairevoyant committed Jun 23, 2023
2 parents ef659e4 + 2b2a1e6 commit 49cabff
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
14 changes: 14 additions & 0 deletions fast_float/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pkgbase = fast_float
pkgdesc = Fast and exact implementation of the C++ from_chars functions:4x faster than strtod
pkgver = 5.2.0
pkgrel = 1
url = https://github.com/fastfloat/fast_float
arch = x86_64
license = Apache
license = Boost
license = MIT
makedepends = cmake
source = fast_float-5.2.0.tar.gz::https://github.com/fastfloat/fast_float/archive/refs/tags/v5.2.0.tar.gz
b2sums = 39133eda20acd5f1f049e8040815a67aee588ab93be4953bde3b9227fb691e099581ef79b12b740437b78a9b4c9007762b44d9726ca07505ad5cb51394d8e3fd

pkgname = fast_float
4 changes: 4 additions & 0 deletions fast_float/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*
!/.gitignore
!/.SRCINFO
!/PKGBUILD
25 changes: 25 additions & 0 deletions fast_float/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Maintainer: éclairevoyant
# Contributor: endlesseden <eden at rose dot place>

pkgname=fast_float
pkgver=5.2.0
pkgrel=1
pkgdesc='Fast and exact implementation of the C++ from_chars functions:4x faster than strtod'
arch=(x86_64)
url="https://github.com/fastfloat/$pkgname"
license=(Apache Boost MIT)
makedepends=(cmake)
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
b2sums=('39133eda20acd5f1f049e8040815a67aee588ab93be4953bde3b9227fb691e099581ef79b12b740437b78a9b4c9007762b44d9726ca07505ad5cb51394d8e3fd')

build() {
cmake -B build -S $pkgname-$pkgver \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/usr"
make -C build
}

package() {
make -C build DESTDIR="$pkgdir" install
install -Dm644 $pkgname-$pkgver/LICENSE* -t "$pkgdir/usr/share/licenses/$pkgname/"
}

0 comments on commit 49cabff

Please sign in to comment.