summaryrefslogtreecommitdiff
path: root/core/gmp/PKGBUILD
blob: fdf85819b71ce0870e5f69e38385588179f307ea (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
# $Id: PKGBUILD 150226 2012-02-15 09:53:48Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=gmp
pkgver=5.0.4
pkgrel=1
pkgdesc="A free library for arbitrary precision arithmetic"
arch=('i686' 'x86_64' 'mips64el')
url="http://gmplib.org/"
depends=('gcc-libs' 'sh')
license=('LGPL3')
options=(!libtool)
install=gmp.install
source=(ftp://ftp.gnu.org/gnu/gmp/gmp-${pkgver}.tar.xz{,.sig})
md5sums=('0881f4ff2617226c673fc534ac39d448'
         'f9e448fff9eaeccdde6ee1f1df00c988')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  
  [ "${CARCH}" = "i686" ] && export ABI="32"
  [ "${CARCH}" = "mips64el" ] && export ABI="n32"
  ./configure --build=${CHOST} \
    --prefix=/usr --infodir=/usr/share/info \
    --enable-cxx
  make
}

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

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