From e44278f16d883a1e660c2de37b47ccf8cc59f2cd Mon Sep 17 00:00:00 2001 From: endlesseden Date: Sat, 9 Jul 2022 00:23:17 +1000 Subject: [PATCH 1/2] init: borrowed much of it from fast_flot-git --- .SRCINFO | 16 ++++++++++++++++ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000..a5e91be5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = fast_float + pkgdesc = Fast and exact implementation of the C++ from_chars functions:4x faster than strtod + pkgver = 3.4.0 + pkgrel = 1 + url = https://github.com/fastfloat/fast_float/ + arch = any + license = MIT + license = Apache-2.0 + makedepends = cmake + makedepends = git + provides = fast_float + conflicts = fast_float + source = fast_float-3.4.0.tar.gz::https://github.com/fastfloat/fast_float/archive/refs/tags/v3.4.0.tar.gz + sha256sums = SKIP + +pkgname = fast_float diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000..c959f78c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: endlesseden + +_pkgbase=fast_float +pkgname=$_pkgbase +pkgver=3.4.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' +makedepends=(cmake git) +conflicts=($_pkgbase) +provides=($_pkgbase) +source=("$_pkgbase-$pkgver.tar.gz::https://github.com/fastfloat/fast_float/archive/refs/tags/v$pkgver.tar.gz") +sha256sums=('SKIP') + +#prepare() { +# +#} + +build() { + cd $_pkgbase-$pkgver + + mkdir -p build + cd build + + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX="/usr" + + make +} + +package() { + cd $_pkgbase-$pkgver/build + make DESTDIR="$pkgdir" install +} From 2b2a1e6fd7b0f6f81e1a2015506b76fd8166b0b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A9clairevoyant?= <848000+eclairevoyant@users.noreply.github.com> Date: Thu, 22 Jun 2023 22:10:14 -0400 Subject: [PATCH 2/2] fast_float: upgpkg 5.2.0; update and install licenses --- .SRCINFO | 16 +++++++--------- .gitignore | 4 ++++ PKGBUILD | 44 ++++++++++++++++---------------------------- 3 files changed, 27 insertions(+), 37 deletions(-) create mode 100644 .gitignore diff --git a/.SRCINFO b/.SRCINFO index a5e91be5..136497c6 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,16 +1,14 @@ pkgbase = fast_float pkgdesc = Fast and exact implementation of the C++ from_chars functions:4x faster than strtod - pkgver = 3.4.0 + pkgver = 5.2.0 pkgrel = 1 - url = https://github.com/fastfloat/fast_float/ - arch = any + url = https://github.com/fastfloat/fast_float + arch = x86_64 + license = Apache + license = Boost license = MIT - license = Apache-2.0 makedepends = cmake - makedepends = git - provides = fast_float - conflicts = fast_float - source = fast_float-3.4.0.tar.gz::https://github.com/fastfloat/fast_float/archive/refs/tags/v3.4.0.tar.gz - sha256sums = SKIP + 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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..713f6f80 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/* +!/.gitignore +!/.SRCINFO +!/PKGBUILD diff --git a/PKGBUILD b/PKGBUILD index c959f78c..f6eadabc 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,37 +1,25 @@ -# Maintainer: endlesseden +# Maintainer: éclairevoyant +# Contributor: endlesseden -_pkgbase=fast_float -pkgname=$_pkgbase -pkgver=3.4.0 +pkgname=fast_float +pkgver=5.2.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' -makedepends=(cmake git) -conflicts=($_pkgbase) -provides=($_pkgbase) -source=("$_pkgbase-$pkgver.tar.gz::https://github.com/fastfloat/fast_float/archive/refs/tags/v$pkgver.tar.gz") -sha256sums=('SKIP') - -#prepare() { -# -#} +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() { - cd $_pkgbase-$pkgver - - mkdir -p build - cd build - - cmake .. \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX="/usr" - - make + cmake -B build -S $pkgname-$pkgver \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX="/usr" + make -C build } package() { - cd $_pkgbase-$pkgver/build - make DESTDIR="$pkgdir" install + make -C build DESTDIR="$pkgdir" install + install -Dm644 $pkgname-$pkgver/LICENSE* -t "$pkgdir/usr/share/licenses/$pkgname/" }