# Contributor: Stefan Stutz # Maintainer: Stefan Stutz pkgname=mpdecimal pkgver=2.5.1 pkgrel=2 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 10-pthreads.patch" 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 ca22894e5a01c2ad8107a86968692071c7c4dfc6ecad04972d278b45611ea4b5ed02259772a24800da43fbec5bb4335604f6745f599c2cbf0cc452238f7710b3 10-pthreads.patch"