~alpine/aports

[PATCH 5/6] testing/double-conversion: New aport

Marian Buschsieweke <marian.buschsieweke@ovgu.de>
Details
Message ID
<20190901190243.25073-5-marian.buschsieweke@ovgu.de>
DKIM signature
missing
Download raw message
Patch: +34 -0
Binary-decimal and decimal-binary routines for IEEE doubles
https://github.com/google/double-conversion
---
 testing/double-conversion/APKBUILD | 34 ++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 testing/double-conversion/APKBUILD

diff --git a/testing/double-conversion/APKBUILD b/testing/double-conversion/APKBUILD
new file mode 100644
index 0000000000..41a87ae402
--- /dev/null
+++ b/testing/double-conversion/APKBUILD
@@ -0,0 +1,34 @@
# 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"
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 ..
	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"
-- 
2.23.0
Reply to thread Export thread (mbox)