core/gmp/PKGBUILD

41 lines
1007 B
Bash
Raw Normal View History

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
2010-04-04 22:20:41 +08:00
2010-03-13 23:25:19 +08:00
pkgname=gmp
2010-04-04 22:20:41 +08:00
pkgver=5.0.1
pkgrel=2
# dash the next line if you want to skip the tests
_test=1
2010-03-13 23:25:19 +08:00
pkgdesc="A free library for arbitrary precision arithmetic"
arch=('i686' 'x86_64')
url="http://gmplib.org/"
2010-04-04 22:20:41 +08:00
depends=('gcc-libs' 'sh')
2010-03-13 23:25:19 +08:00
license=('LGPL3')
options=('!libtool' 'log')
2010-03-13 23:25:19 +08:00
install=gmp.install
source=(ftp://ftp.gnu.org/gnu/gmp/gmp-${pkgver}.tar.bz2)
2010-04-04 22:20:41 +08:00
md5sums=('6bac6df75c192a13419dfd71d19240a7')
2010-03-13 23:25:19 +08:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
[ "${CARCH}" = "i686" ] && export ABI="32"
./configure --build=${CHOST} \
2010-03-13 23:25:19 +08:00
--prefix=/usr --infodir=/usr/share/info \
--enable-cxx
make
if [ -n "${_test}" ]; then
echo "<<< STARTING TESTS >>>"
make check
echo "<<< ENDING TESTS >>>"
fi
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
2010-03-13 23:25:19 +08:00
}