From 10f85ab23c3730c60ea497104d9a8f2c81128443 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 11 Nov 2010 11:49:34 +0100 Subject: [PATCH] libffi-devel: fix includedir in pkgconfig file, bumprev. --- srcpkgs/libffi/libffi-devel.template | 2 ++ srcpkgs/libffi/template | 7 +++++++ 2 files changed, 9 insertions(+) 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 +}