Created
September 28, 2013 13:52
-
-
Save PedroHLC/6742282 to your computer and use it in GitHub Desktop.
AUR gmp4 PKGBUILD fixed
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
pkgname=gmp4 | |
pkgver=4.3.2 | |
pkgrel=2 | |
pkgdesc="Legacy version of gmp. Provides 'libgmp.so.3'." | |
arch=('i686') | |
url="http://gmplib.org/" | |
depends=('gcc-libs' 'sh') | |
optdepends=('gmp') | |
license=('LGPL3') | |
options=('!libtool' '!buildflags') | |
source=(ftp://ftp.gmplib.org/pub/gmp-${pkgver}/gmp-${pkgver}.tar.lz) | |
md5sums=('0bab51afae3024393185a16bb05298e5') | |
prepare(){ | |
cd "${srcdir}/gmp-${pkgver}" | |
#Put gmp.h in the same folder as gmpxx.h | |
sed -i 's/$(exec_prefix)\/include/$\(includedir\)/' Makefile.in | |
} | |
build() { | |
cd "${srcdir}/gmp-${pkgver}" | |
./configure --prefix=/usr --enable-cxx | |
make DESTDIR="${srcdir}/installed" install || return 1 | |
} | |
package() { | |
mkdir -p "${pkgdir}/usr/lib" | |
cp -a "${srcdir}/installed/usr/lib/"libgmp.so.3* "${pkgdir}/usr/lib/" || return 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems the dependencies must be corrected:
And add
x86_64
arch.