diff --git a/srcpkgs/libffi/template b/srcpkgs/libffi/template index f561ec93dc7..b6e0f433e5c 100644 --- a/srcpkgs/libffi/template +++ b/srcpkgs/libffi/template @@ -1,7 +1,7 @@ # Template file for 'libffi' pkgname=libffi version=3.1 -revision=1 +revision=2 build_style=gnu-configure configure_args="--includedir=/usr/include --with-pic=yes" short_desc="Library supporting Foreign Function Interfaces" @@ -20,6 +20,8 @@ post_install() { # Fix includedir for pkg-config file. sed -i -e "s|\${libdir}/libffi-${version}|/usr|" \ ${DESTDIR}/usr/lib/pkgconfig/libffi.pc + # Fix libdir, it's a variable! + sed -i 's|\$(libdir)|\${libdir}|g' ${DESTDIR}/usr/lib/pkgconfig/libffi.pc vinstall LICENSE 644 usr/share/licenses/libffi rm ${DESTDIR}/usr/lib64 }