APP=libffi
VERSION=3.3
BUILD=1sml
HOMEPAGE='http://sourceware.org/libffi/'
DOWNLOAD='ftp://sourceware.org/pub/libffi/libffi-3.3.tar.gz'
DESC="A Portable Foreign Function Interface Library"
REQUIRES="gcc-libs"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --disable-static 

  make
  make install DESTDIR=$PKG

  cp LICEN?E $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
6d344a19ab2f30070a52762069434d2da590e6c356647aa627f493291004e6690af70ef7408d8b46b5c767edae020c595b4e389da64192f29db31ab930424d1a  libffi-3.3.tar.lz
"
