summaryrefslogtreecommitdiff
path: root/libre/mpfr-static/PKGBUILD
blob: 5be93051b8e5d7a078bc5c42fc5830944ffa3720 (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
38
39
40
41
42
43
44
45
46
# Maintainer: Márcio Silva <coadde@parabola.nu>
# based of mpfr

_pkgname=mpfr
pkgname=mpfr-static
_pkgver=3.1.4
#_patchlevel=p5
#pkgver=${_pkgver}.${_patchlevel}
pkgver=${_pkgver}
pkgrel=1
pkgdesc="Multiple-precision floating-point library (static libraries only)"
arch=('i686' 'x86_64')
url="http://www.mpfr.org/"
license=('LGPL')
depends=('gmp-static>=5.0' 'mpfr')
options=('staticlibs')
source=(http://www.mpfr.org/mpfr-current/mpfr-${_pkgver}.tar.xz{,.asc})
#        mpfr-${_pkgver}-${_patchlevel}.patch)
md5sums=('064b2c18185038e404a401b830d59be8'
         'SKIP')
validpgpkeys=('07F3DBBECC1A39605078094D980C197698C3739D')

#prepare() {
#  cd "${srcdir}/${pkgname}-${_pkgver}"
#  patch -p1 -i $srcdir/mpfr-${_pkgver}-${_patchlevel}.patch
#}

build() {
  cd "${srcdir}/${_pkgname}-${_pkgver}"
  ./configure --prefix=/usr --enable-thread-safe --enable-shared
  make
}

check() {
  cd "${srcdir}/${_pkgname}-${_pkgver}"
  make check
}

package() {
  cd "${srcdir}/${_pkgname}-${_pkgver}"
  make DESTDIR="${pkgdir}" install

  # remove conflicting files
  rm -vr ${pkgdir}/usr/{include,share}
  rm -v ${pkgdir}/usr/lib/libmpfr.so*
}