aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mpdecimal/APKBUILD
blob: c4fd9479fb26f0f1c955bbe171186dd0dd170c63 (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
32
33
34
# Contributor: Stefan Stutz <stutz@pm.me>
# Maintainer: Stefan Stutz <stutz@pm.me>
pkgname=mpdecimal
pkgver=2.5.0
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"
source="http://www.bytereef.org/software/mpdecimal/releases/mpdecimal-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_guess
	update_config_sub
}

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

check() {
	make check
}

package() {
	make install DESTDIR="$pkgdir"
}
sha512sums="6f889f5f8c3e5854204ad7380b63c1bfeb5193c1d464f9a32149d47d1c9bd996c6a57b867ab65ea84f33e87fe69cb45ad78aa2abfb9bb5144eb527587016c472  mpdecimal-2.5.0.tar.gz"