Commit 2b1824d1 authored by Marian Buschsieweke's avatar Marian Buschsieweke Committed by Leo
Browse files

testing/mpir: new aport

Multiple Precision Integers and Rationals
http://mpir.org/
parent 161c320f
Pipeline #59769 skipped
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=mpir
pkgver=3.0.0
pkgrel=0
pkgdesc="Multiple Precision Integers and Rationals"
url="http://mpir.org/"
# Fails on ppc64le: "ABI version 1 is not compatible with ABI version 2 output"
arch="all !ppc64le"
license="LGPL-3.0-or-later"
makedepends="yasm m4"
subpackages="$pkgname-dev $pkgname-doc"
source="
http://mpir.org/mpir-$pkgver.tar.bz2
mpir.pc
mpirxx.pc
"
prepare() {
default_prepare
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="c735105db8b86db739fd915bf16064e6bc82d0565ad8858059e4e93f62c9d72d9a1c02a5ca9859b184346a8dc64fa714d4d61404cff1e405dc548cbd54d0a88e mpir-3.0.0.tar.bz2
00f960b5f320a12ef8ce98d457591f963e30685c94ad7f79942268c64e428f564f16c6bade001e63610817f6c22279a1d3b2473b9ca88b29c36fe9589e58d400 mpir.pc
c6c264b12091ef6f962cfcc819a0cd74586189afbba4af878f47d9921745e6d3634cd62a3a107a865438644181a5c60286f907b1aa4c80eb0ec1c7df44ab0f56 mpirxx.pc"
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
modules=1
Name: mpir
Version: @PKGVER@
Description: Multiple Precision Integers and Rationals.
Requires:
Libs: -L${libdir} -lmpir
Cflags: -I${includedir}
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
modules=1
Name: mpir C++
Version: @PKGVER@
Description: Multiple Precision Integers and Rationals.
Requires:
Libs: -L${libdir} -lmpirxx
Cflags: -I${includedir}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment