libgmp-32: clean up build for i686

This commit is contained in:
Danny Rawlins 2016-03-28 11:00:33 +11:00
parent 0a059aef63
commit 05003d187f

View File

@ -4,22 +4,23 @@
name=libgmp-32
version=6.1.0
release=1
source=(https://gmplib.org/download/gmp/gmp-$version.tar.xz)
release=2
source=(http://gmplib.org/download/gmp/gmp-$version.tar.xz)
build() {
cd gmp-${version%a}
cd gmp-$version
ABI=32 ./configure \
--prefix=/usr \
--libdir=/usr/lib32 \
--enable-cxx
./configure \
--prefix=/usr \
--libdir=/usr/lib32 \
--enable-cxx \
--build=i686-pc-linux-gnu
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
mv $PKG/usr/include/gmp{,-32}.h
rm $PKG/usr/include/gmpxx.h
mv $PKG/usr/include/gmp{,-32}.h
rm $PKG/usr/include/gmpxx.h
rm -r $PKG/usr/share
rm -r $PKG/usr/share
}