diff --git a/srcpkgs/libffi/libffi-devel.template b/srcpkgs/libffi/libffi-devel.template index 80e0880810..924c21fcc7 100644 --- a/srcpkgs/libffi/libffi-devel.template +++ b/srcpkgs/libffi/libffi-devel.template @@ -5,6 +5,8 @@ long_desc="${long_desc} This package contains files for development, headers, static libs, etc." +revision=1 + Add_dependency run glibc-devel Add_dependency run libffi diff --git a/srcpkgs/libffi/template b/srcpkgs/libffi/template index 493a47e805..6c53b63ec6 100644 --- a/srcpkgs/libffi/template +++ b/srcpkgs/libffi/template @@ -29,3 +29,10 @@ long_desc=" subpackages="$pkgname-devel" Add_dependency run glibc Add_dependency build texinfo + +post_install() +{ + # Fix includedir for pkg-config file. + sed -i -e "s|\${libdir}/libffi-${version}|/usr|" \ + ${DESTDIR}/usr/lib/pkgconfig/libffi.pc +}