blob: 644eb2d4a9c588a3a41adb9f4cd74b91fd01b904 (
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
|
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=double-conversion
pkgver=3.2.1
pkgrel=1
pkgdesc="Binary-decimal and decimal-binary routines for IEEE doubles"
url="https://github.com/google/double-conversion"
arch="all"
license="BSD-3-Clause"
makedepends="cmake samurai"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/google/double-conversion/archive/v$pkgver.tar.gz"
case "$CARCH" in
x86) options="$options !check" ;; # SIGABRT in tests
esac
build() {
cmake -B build -G Ninja \
-DBUILD_TESTING=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON
cmake --build build
}
check() {
cd build
test/cctest/cctest --list | tr -d '<' | xargs test/cctest/cctest
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
d2feb3098a1d4d6baab5f89bcc29ac2e06d314d552b8c747c6eb6dba5dd165a15dc71200191edb7f05d521c349e12d59cddba3c5db101e1623e0e76e19f21a49 double-conversion-3.2.1.tar.gz
"
|