aboutsummaryrefslogtreecommitdiffstats
path: root/testing/double-conversion/APKBUILD
blob: f762974c239201f955f65f86823ca9d0264b6ebf (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
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"