mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-07 00:42:07 +01:00
Binary-decimal and decimal-binary routines for IEEE doubles https://github.com/google/double-conversion
40 lines
937 B
Plaintext
40 lines
937 B
Plaintext
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
|
pkgname=double-conversion
|
|
pkgver=3.1.5
|
|
pkgrel=0
|
|
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"
|
|
subpackages="$pkgname-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/google/double-conversion/archive/v$pkgver.tar.gz"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
mkdir -p build
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
|
|
cmake .. \
|
|
-DBUILD_TESTING=ON \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DBUILD_SHARED_LIBS=ON
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
test/cctest/cctest --list | tr -d '<' | xargs test/cctest/cctest
|
|
}
|
|
|
|
package() {
|
|
cd build
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="0aeabdbfa06c3c4802905ac4bf8c2180840577677b47d45e1c91034fe07746428c9db79260ce6bdbdf8b584746066cea9247ba43a9c38155caf1ef44e214180a double-conversion-3.1.5.tar.gz"
|