Created
July 29, 2015 04:26
-
-
Save lf-/cd77926dee4def745049 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: PKGBUILD 108637 2014-03-30 21:43:19Z bluewind $ | |
# Maintainer: Florian Pritz <[email protected]> | |
# Contributor: josephgbr <[email protected]> | |
_pkgbasename=gmp | |
pkgname=lib32-$_pkgbasename | |
pkgver=6.0.0 | |
pkgrel=1 | |
pkgdesc="A free library for arbitrary precision arithmetic (32-bit)" | |
arch=('x86_64') | |
url="http://gmplib.org/" | |
depends=('lib32-gcc-libs' $_pkgbasename) | |
makedepends=(gcc-multilib) | |
license=('LGPL3') | |
options=(!libtool) | |
source=(ftp://ftp.gmplib.org/pub/gmp-${pkgver}/gmp-${pkgver}a.tar.xz{,.sig}) | |
md5sums=('1e6da4e434553d2811437aa42c7f7c76' | |
'SKIP') | |
build() { | |
export CC="gcc -m32" | |
export CXX="g++ -m32" | |
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" | |
cd "${srcdir}/${_pkgbasename}-${pkgver}" | |
export ABI=32 | |
./configure \ | |
--prefix=/usr --infodir=/usr/share/info \ | |
--enable-cxx --libdir=/usr/lib32 \ | |
--includedir=/usr/lib32/gmp | |
#Put gmp.h in the same folder as gmpxx.h | |
sed -i 's/$(exec_prefix)\/include/$\(includedir\)/' Makefile | |
make | |
} | |
check() { | |
cd "${srcdir}/${_pkgbasename}-${pkgver}" | |
make check | |
} | |
package() { | |
cd "${srcdir}/${_pkgbasename}-${pkgver}" | |
make DESTDIR="${pkgdir}" install | |
rm -rf "${pkgdir}"/usr/{include,share,bin} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment