# Template file for 'libffi' pkgname=libffi version=3.0.10 revision=5 build_style=gnu-configure configure_args="--includedir=/usr/include --with-pic=yes" short_desc="Library supporting Foreign Function Interfaces" maintainer="Juan RP <xtraeme@gmail.com>" homepage="http://sourceware.org/libffi" license="MIT" distfiles="ftp://sourceware.org/pub/$pkgname/$pkgname-$version.tar.gz" checksum=f01eb9027e9eb56aeaeef636649877756d475d714ef8b47f627f65bc5f3b492f post_install() { # Fix includedir for pkg-config file. sed -i -e "s|\${libdir}/libffi-${version}|/usr|" \ ${DESTDIR}/usr/lib/pkgconfig/libffi.pc vinstall LICENSE 644 usr/share/licenses/libffi } libffi-devel_package() { depends="libffi>=${version}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove "usr/lib/*.a" vmove usr/lib/pkgconfig vmove usr/share } }