aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mpdecimal/APKBUILD
blob: ee79c2423357c3cfc544f03fe4369567df7bbe09 (plain) (blame)
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
# Contributor: Stefan Stutz <stutz@pm.me>
# Maintainer: Stefan Stutz <stutz@pm.me>
pkgname=mpdecimal
pkgver=2.5.1
pkgrel=0
pkgdesc="complete implementation of the General Decimal Arithmetic Specification"
url="http://www.bytereef.org/mpdecimal/index.html"
arch="all !x86 !ppc64le !armv7 !armhf" # segfault in tests
license="BSD-2-Clause"
subpackages="$pkgname-doc $pkgname-dev"
source="http://www.bytereef.org/software/mpdecimal/releases/mpdecimal-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--target=$CTARGET \
		--prefix=/usr
	make
}

check() {
	# The new test target *make check_local* does not attempt to download
	# dectest.zip.  This is useful for packagers whose infrastructure does
	# not allow downloading during the testing phase.
	make check_local
}

package() {
	make install DESTDIR="$pkgdir"
}
sha512sums="710cb5cb71dbcf3e170ca15869c148df0547b848400c6b6dd70c67d9961dbe1190af8fb4d1623bfb0ca2afe44f369a42e311ab5225ed89d4031cb49a3bd70f30  mpdecimal-2.5.1.tar.gz"