summaryrefslogtreecommitdiff
path: root/libmpc-static/PKGBUILD
blob: 6675650b32c84e92e1732d0e03900502af5f6185 (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
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Allan McRae <allan@archlinux.org>

pkgname=libmpc-static
pkgver=1.1.0
pkgrel=1
pkgdesc="Library for the arithmetic of complex numbers with arbitrarily high precision"
arch=('x86_64')
url="http://www.multiprecision.org/"
license=('LGPL')
depends=('mpfr-static')
source=(https://ftp.gnu.org/gnu/mpc/mpc-${pkgver/_/-}.tar.gz{,.sig})
md5sums=('4125404e41e482ec68282a2e687f6c73'
         'SKIP')
validpgpkeys=('AD17A21EF8AED8F1CC02DBD9F7D5C9BF765C61E3')  # Andreas Enge

build() {
  cd "${srcdir}/mpc-${pkgver}"
  LDFLAGS+=' -static '
  ./configure --prefix=/usr
  make
}

check() {
  cd "${srcdir}/mpc-${pkgver}"
  make check
}

package() {
  cd "${srcdir}/mpc-${pkgver}"
  make DESTDIR="${pkgdir}" install
  rm -rf --one-file-system "$pkgdir/usr/include/" "$pkgdir/usr/share"
}