2022-12-11 22:30:40 +01:00
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
# Contributor: Allan McRae <allan@archlinux.org>
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
pkgname=libmpc
|
2022-12-20 14:27:17 +01:00
|
|
|
pkgver=1.3.1
|
2024-07-05 13:53:25 +02:00
|
|
|
pkgrel=2
|
2022-12-13 21:08:43 +01:00
|
|
|
pkgdesc='Library for the arithmetic of complex numbers with arbitrarily high precision'
|
|
|
|
arch=(x86_64)
|
|
|
|
url='http://www.multiprecision.org/'
|
2024-07-05 13:53:25 +02:00
|
|
|
license=(LGPL-3.0-only)
|
|
|
|
depends=(glibc
|
|
|
|
gmp
|
|
|
|
mpfr)
|
2022-12-20 14:27:17 +01:00
|
|
|
source=(https://ftp.gnu.org/gnu/mpc/mpc-${pkgver/_/-}.tar.gz{,.sig})
|
|
|
|
sha256sums=('ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8'
|
|
|
|
'SKIP')
|
2022-03-20 13:19:37 +01:00
|
|
|
validpgpkeys=('AD17A21EF8AED8F1CC02DBD9F7D5C9BF765C61E3') # Andreas Enge
|
|
|
|
|
|
|
|
build() {
|
2022-12-11 22:30:40 +01:00
|
|
|
cd mpc-$pkgver
|
2024-07-05 13:53:25 +02:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr
|
2022-03-20 13:19:37 +01:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2022-12-11 22:30:40 +01:00
|
|
|
cd mpc-$pkgver
|
2022-03-20 13:19:37 +01:00
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-12-11 22:30:40 +01:00
|
|
|
cd mpc-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
mv "$pkgdir"/usr/share/info/{mpc,libmpc}.info
|
2022-03-20 13:19:37 +01:00
|
|
|
}
|