Name mpdecimal
Description complete implementation of the General Decimal Arithmetic Specification
Version 4.0.1-r0
Package Base mpdecimal
Homepage https://www.bytereef.org/mpdecimal/index.html
Maintainers ['Stefan Stutz <stutz@pm.me>']
Contributors ['Stefan Stutz <stutz@pm.me>']
Distro-repo https://gitlab.alpinelinux.org/alpine/aports/-/tree/3.22-stable/main/mpdecimal
Sources ['https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-4.0.1-r0.tar.gz']
Dependencies ['libc.musl-x86_64.so.1', 'libgcc_s.so.1', 'libstdc++.so.6']
Optional-Dependencies []
Build-Dependencies []
Provides ['so:libmpdec++.so.4=4.0.1', 'so:libmpdec.so.4=4.0.1']
Builddate 16-05-2025 16:49:45
Architecture x86_64
Distro-Version v3.22
Licenses ['BSD-2-Clause']
Hash Q1DaY2XA6SZQMo/hdsv2XDXE8EIfA=
# Contributor: Stefan Stutz <stutz@pm.me>
# Maintainer: Stefan Stutz <stutz@pm.me>
pkgname=mpdecimal
pkgver=4.0.1
pkgrel=0
pkgdesc="complete implementation of the General Decimal Arithmetic Specification"
url="https://www.bytereef.org/mpdecimal/index.html"
arch="all"
license="BSD-2-Clause"
subpackages="$pkgname-doc $pkgname-dev"
source="https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--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="
431fa8ab90d6b8cdecc38b1618fd89d040185dec3c1150203e20f40f10a16160058f6b8abddd000f6ecb74f4dc42d9fef8111444f1496ab34c34f6b814ed32b7  mpdecimal-4.0.1.tar.gz
"