app=libffi
version=3.3
build=1sml
homepage="http://sourceware.org/libffi/"
download="ftp://sourceware.org/pub/libffi/libffi-$version.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
"
