Name mpdecimal
Description Package for correctly-rounded arbitrary precision decimal floating point arithmetic
Version 4.0.1-1
Package Base mpdecimal
Homepage https://www.bytereef.org/mpdecimal/index.html
Maintainers ['Felix Yan <felixonmars@archlinux.org>', 'Jelle van der Waa <jelle@archlinux.org>']
Contributors []
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/mpdecimal
Sources ['https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-4.0.1.tar.gz']
Dependencies ['gcc-libs', 'glibc']
Optional-Dependencies []
Build-Dependencies []
Provides []
Builddate 08-05-2025 09:21:18
Architecture x86_64
Distro-Version
Licenses ['BSD']
Hash 9b33722a73a406f029945537454e03afbc3ff6223b33cd3b5b8c1b98b054df32
# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=mpdecimal
pkgver=4.0.1
pkgrel=1
pkgdesc="Package for correctly-rounded arbitrary precision decimal floating point arithmetic"
arch=('x86_64')
url="https://www.bytereef.org/mpdecimal/index.html"
license=('BSD')
depends=('glibc' 'gcc-libs')
source=("https://www.bytereef.org/software/$pkgname/releases/$pkgname-$pkgver.tar.gz")
sha512sums=('431fa8ab90d6b8cdecc38b1618fd89d040185dec3c1150203e20f40f10a16160058f6b8abddd000f6ecb74f4dc42d9fef8111444f1496ab34c34f6b814ed32b7')

build() {
  cd $pkgname-$pkgver

  ./configure --prefix=/usr
  LDXXFLAGS="$LDFLAGS" make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install

  install -Dm644 COPYRIGHT.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
}