blob: fd1591648a27143f7b1340e59e41b8c94718ec0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Márcio Silva <coadde@parabola.nu>
# based of libmpc
_pkgname=libmpc
pkgname=libmpc-static
pkgver=1.0.3
pkgrel=1
pkgdesc="Library for the arithmetic of complex numbers with arbitrarily high precision (static libraries only)"
arch=('i686' 'x86_64' 'armv7h')
url="http://www.multiprecision.org/"
license=('LGPL')
depends=('mpfr-static' 'libmpc')
options=('staticlibs')
source=(http://www.multiprecision.org/mpc/download/mpc-${pkgver/_/-}.tar.gz{,.sig})
md5sums=('d6a1d5f8ddea3abd2cc3e98f58352d26'
'SKIP')
validpgpkeys=('AD17A21EF8AED8F1CC02DBD9F7D5C9BF765C61E3') # Andreas Enge
build() {
cd "${srcdir}/mpc-${pkgver}"
./configure --prefix=/usr
make
}
check() {
cd "${srcdir}/mpc-${pkgver}"
make check
}
package() {
cd "${srcdir}/mpc-${pkgver}"
make DESTDIR="${pkgdir}" install
# remove conflicting files
rm -vr ${pkgdir}/usr/{include,share}
rm -v ${pkgdir}/usr/lib/libmpc.so*
}
|