libgmp-32: fix for multilib header installation

This commit is contained in:
Matt Housh 2013-08-07 07:47:23 -05:00
parent 999ed56a33
commit 02d26fed76
2 changed files with 13 additions and 20 deletions

View File

@ -1,8 +1,7 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/gmp-32.h
drwxr-xr-x root/root usr/lib32/
drwxr-xr-x root/root usr/lib32/gmp/
-rw-r--r-- root/root usr/lib32/gmp/gmp.h
-rw-r--r-- root/root usr/lib32/gmp/gmpxx.h
-rw-r--r-- root/root usr/lib32/libgmp.a
-rwxr-xr-x root/root usr/lib32/libgmp.la
lrwxrwxrwx root/root usr/lib32/libgmp.so -> libgmp.so.10.1.2

View File

@ -4,28 +4,22 @@
name=libgmp-32
version=5.1.2
release=2
release=3
source=(ftp://ftp.gmplib.org/pub/gmp-$version/gmp-$version.tar.xz)
build() {
cd gmp-$version
cd gmp-$version
export ABI=32
ABI=32 ./configure \
--prefix=/usr \
--libdir=/usr/lib32 \
--enable-cxx
./configure \
--prefix=/usr \
--libdir=/usr/lib32 \
--includedir=/usr/lib32/gmp \
--enable-cxx
make
make DESTDIR=$PKG install
#Put gmp.h in the same folder as gmpxx.h
sed -i 's/$(exec_prefix)\/include/$\(includedir\)/' Makefile
mv $PKG/usr/include/gmp{,-32}.h
rm $PKG/usr/include/gmpxx.h
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share/info
# Remove empty directories
find $PKG -depth -empty -exec rm -r {} \;
rm -r $PKG/usr/share
}