From 3ac2747f8c3337564f6bb8e2ff457275ee54b248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Thu, 9 Feb 2017 15:44:54 +0000 Subject: subr/pkg_install.subr: force exec_prefix=${prefix} if unset in pkg-config files (.pc) prior to installing. --- subr/pkg_install.subr | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/subr/pkg_install.subr b/subr/pkg_install.subr index 74b79247..4b14a5d2 100644 --- a/subr/pkg_install.subr +++ b/subr/pkg_install.subr @@ -44,9 +44,8 @@ pkgp_install_pkgconfig() { local __; for __ in $(find "${WORKDIR}/${PKG_BUILD_DIR}" -name \*.pc); do if grep -Eq '^libdir=[^$]+$' "${__}"; then - echo sed -i '/^libdir=[^$]\+$/s/^libdir=\(.\+\)$/libdir=${exec_prefix}\1/' \ - "${__}"; - sed -i '/^libdir=[^$]\+$/s/^libdir=\(.\+\)$/libdir=${exec_prefix}\1/' \ + sed -i -e '/^libdir=[^$]\+$/s/^libdir=\(.\+\)$/libdir=${exec_prefix}\1/' \ + -e '/^exec_prefix=$/s/^.*$/exec_prefix=${prefix}/' \ "${__}"; fi; done; -- cgit v1.2.3