updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / mingw32-gmp / PKGBUILD
blob6758f01dc2013ee26f742ed449142e100203ae60
1 # Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
3 pkgname=mingw32-gmp
4 pkgver=5.0.2
5 pkgrel=2
6 arch=('any')
7 pkgdesc="A free library for arbitrary precision arithmetic (mingw32)"
8 depends=('mingw32-runtime')
9 makedepends=('mingw32-gcc')
10 options=(!strip !buildflags !libtool)
11 license=('LGPL3')
12 url="http://gmplib.org/"
13 source=(ftp://ftp.gnu.org/gnu/gmp/gmp-${pkgver}.tar.bz2)
14 sha256sums=('dbc2db76fdd4e99f85d5e35aa378ed62c283e0d586b91bd8703aff75a7804c28')
17 build() {
18   cd "${srcdir}/${pkgname#mingw32-}-${pkgver}"
20   export ABI="32"
22   ./configure \
23     --prefix=/usr/i486-mingw32 \
24     --target=i486-mingw32 \
25     --host=i486-mingw32 \
26     --build=${CHOST} \
27     --enable-cxx
29   make
32 package() {
33   cd "${srcdir}/${pkgname#mingw32-}-${pkgver}"
35   make install DESTDIR="$pkgdir/"
37   find "$pkgdir/" -name '*.a' | xargs -rtl1 i486-mingw32-strip -g
40 # vim:set ts=2 sw=2 et: