diff options
author | Marian Buschsieweke <marian.buschsieweke@ovgu.de> | 2019-09-01 21:02:42 +0200 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-01 20:42:13 -0300 |
commit | 8516c779ffc093d8f9ae3ffd237c58a3d9e37506 (patch) | |
tree | a0edc3f7a647df2c8d40e5e6a7164c8d873aadac /testing/double-conversion | |
parent | 8c83d9b6582e773d3f76585ff05cf365b5dde302 (diff) | |
download | aports-8516c779ffc093d8f9ae3ffd237c58a3d9e37506.tar.bz2 aports-8516c779ffc093d8f9ae3ffd237c58a3d9e37506.tar.xz |
testing/double-conversion: New aport
Binary-decimal and decimal-binary routines for IEEE doubles
https://github.com/google/double-conversion
Diffstat (limited to 'testing/double-conversion')
-rw-r--r-- | testing/double-conversion/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/double-conversion/APKBUILD b/testing/double-conversion/APKBUILD new file mode 100644 index 0000000000..f762974c23 --- /dev/null +++ b/testing/double-conversion/APKBUILD @@ -0,0 +1,39 @@ +# 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" |