--- branches/2.7/libffi/Pkgfile 2012/05/10 02:10:35 2698 +++ branches/2.7/libffi/Pkgfile 2012/05/10 20:08:36 2699 @@ -3,20 +3,27 @@ # Maintainer: acrux, acrux at linuxmail dot org # Packager: Giuseppe Coviello # Depends on: +# PPC!= name=libffi version=3.0.11 -release=1 +release=2 source=(ftp://sourceware.org/pub/libffi/libffi-$version.tar.gz) build() { + + if [ "$HOSTTYPE" == "powerpc64" ]; then + LIB="lib64" ; mkdir -p $PKG/usr/lib64 + else + LIB="lib" + fi + cd $name-$version ./configure --prefix=/usr --mandir=/usr/man make make DESTDIR=$PKG install rm -rf $PKG/usr/share - cd $PKG/usr/lib - ln -s libffi.so libffi.so.5 + cd $PKG/usr/$LIB + ln -s ../lib/libffi.so libffi.so.5 } -