diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-11-21 19:01:43 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-11-21 19:01:43 +0000 |
commit | 022f7e6fb1af4d2f2fca4176b04ac5c38da12b93 (patch) | |
tree | 904805b92d2be8d1c73e2f69fe58f62955108823 /subr/pkg_install_pkgconfig.subr | |
parent | f31496ef4e9a393607c8c6e6dcaef6101a273b88 (diff) | |
download | midipix_build-022f7e6fb1af4d2f2fca4176b04ac5c38da12b93.tar.bz2 midipix_build-022f7e6fb1af4d2f2fca4176b04ac5c38da12b93.tar.xz |
subr/pkg_*.subr, vars/{apr,git}.vars: supply & reference ${PKG_DESTDIR}.
Diffstat (limited to 'subr/pkg_install_pkgconfig.subr')
-rw-r--r-- | subr/pkg_install_pkgconfig.subr | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/subr/pkg_install_pkgconfig.subr b/subr/pkg_install_pkgconfig.subr index b46069a3..43c0d601 100644 --- a/subr/pkg_install_pkgconfig.subr +++ b/subr/pkg_install_pkgconfig.subr @@ -3,12 +3,12 @@ # pkg_install_pkgconfig() { - local __; - for __ in $(find "${PWD}/../destdir" -name \*.pc); do - if grep -Eq '^libdir=[^$]+$' "${__}"; then + local _pc_path; + for _pc_path in $(find "${PKG_DESTDIR}" -name \*.pc); do + if grep -Eq '^libdir=[^$]+$' "${_pc_path}"; then sed -i -e '/^libdir=[^$]\+$/s/^libdir=\(.\+\)$/libdir=${exec_prefix}\1/' \ - -e '/^exec_prefix=$/s/^.*$/exec_prefix=${prefix}/' \ - "${__}"; + -e '/^exec_prefix=$/s/^.*$/exec_prefix=${prefix}/' \ + "${_pc_path}"; fi; done; }; |