blob: 21572dcee001690851c044470d7d571c139bf9c8 (
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
30
31
32
33
34
35
36
37
38
|
# Maintainer: endlesseden <eden@rose.place>
_pkgbase=fast_float
pkgname=$_pkgbase-git
pkgver=3.4.0.r17.gcfb44c2
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::git+https://github.com/fastfloat/fast_float.git)
sha256sums=('SKIP')
pkgver() {
cd $_pkgbase
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g'
}
build() {
cd $_pkgbase
mkdir -p build
cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/usr"
make
}
package() {
cd $_pkgbase/build
make DESTDIR="$pkgdir" install
}
|