mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-31 22:32:14 +01:00
59 lines
1.7 KiB
Plaintext
59 lines
1.7 KiB
Plaintext
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
|
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
|
pkgname=mpir
|
|
pkgver=3.0.0
|
|
pkgrel=1
|
|
pkgdesc="Multiple Precision Integers and Rationals"
|
|
url="https://github.com/wbhart/mpir"
|
|
# Fails on ppc64le: "ABI version 1 is not compatible with ABI version 2 output"
|
|
# x86: Lots of bad register names
|
|
arch="all !ppc64le !x86"
|
|
license="LGPL-3.0-or-later"
|
|
makedepends="autoconf automake texinfo libtool yasm m4"
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/wbhart/mpir/archive/refs/tags/mpir-$pkgver.tar.gz
|
|
mpir.pc
|
|
mpirxx.pc
|
|
"
|
|
builddir="$srcdir/mpir-mpir-$pkgver"
|
|
# tests underflow to give 0 but gets
|
|
# 8.0863492239043898133e-174
|
|
# and fails
|
|
options="!check"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
update_config_guess
|
|
update_config_sub
|
|
autoreconf -fvi
|
|
|
|
sed -e "s/@PKGVER@/$pkgver/" -i "$srcdir"/mpir.pc
|
|
sed -e "s/@PKGVER@/$pkgver/" -i "$srcdir"/mpirxx.pc
|
|
}
|
|
|
|
build() {
|
|
./configure \
|
|
--prefix=/usr \
|
|
--enable-cxx \
|
|
--disable-static
|
|
make
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" make install
|
|
install -Dm644 "$srcdir"/mpir.pc "$pkgdir"/usr/lib/pkgconfig/mpir.pc
|
|
install -Dm644 "$srcdir"/mpirxx.pc "$pkgdir"/usr/lib/pkgconfig/mpirxx.pc
|
|
}
|
|
|
|
check() {
|
|
make check-recursive
|
|
}
|
|
|
|
sha512sums="
|
|
7d37f60645c533a6638dde5d9c48f5535022fa0ea02bafd5b714649c70814e88c5e5e3b0bef4c5a749aaf8772531de89c331716ee00ba1c2f9521c2cc8f3c61b mpir-3.0.0.tar.gz
|
|
00f960b5f320a12ef8ce98d457591f963e30685c94ad7f79942268c64e428f564f16c6bade001e63610817f6c22279a1d3b2473b9ca88b29c36fe9589e58d400 mpir.pc
|
|
c6c264b12091ef6f962cfcc819a0cd74586189afbba4af878f47d9921745e6d3634cd62a3a107a865438644181a5c60286f907b1aa4c80eb0ec1c7df44ab0f56 mpirxx.pc
|
|
"
|