diff options
Diffstat (limited to 'core/gmp')
-rw-r--r-- | core/gmp/PKGBUILD | 31 | ||||
-rw-r--r-- | core/gmp/gmp.install | 20 |
2 files changed, 51 insertions, 0 deletions
diff --git a/core/gmp/PKGBUILD b/core/gmp/PKGBUILD new file mode 100644 index 000000000..234f18ad8 --- /dev/null +++ b/core/gmp/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 105599 2011-01-10 18:34:30Z stephane $ +# Maintainer: Allan McRae <allan@archlinux.org> +# Maintainer: Jan de Groot <jgc@archlinux.org> + +pkgname=gmp +pkgver=5.0.1 +pkgrel=2 +pkgdesc="A free library for arbitrary precision arithmetic" +arch=('i686' 'x86_64') +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.bz2) +md5sums=('6bac6df75c192a13419dfd71d19240a7') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + [ "${CARCH}" = "i686" ] && export ABI="32" + ./configure --build=${CHOST} \ + --prefix=/usr --infodir=/usr/share/info \ + --enable-cxx + make + make check +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +} diff --git a/core/gmp/gmp.install b/core/gmp/gmp.install new file mode 100644 index 000000000..1c31ab365 --- /dev/null +++ b/core/gmp/gmp.install @@ -0,0 +1,20 @@ +info_dir=/usr/share/info +info_files=(gmp.info gmp.info-1 gmp.info-2) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for f in ${info_files[@]}; do + install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for f in ${info_files[@]}; do + install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null + done +} |