From c27beab66023847435fb88cd5cc75916dca37057 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: Mon, 20 Nov 2017 21:45:21 +0000 Subject: Refactors build steps along the sequence {setup,fetch,configure,build,install}. subr/mode_check_updates.subr: seperated into check_updates.sh. subr/post_{copy_etc,sha256sums,tarballs}.subr: absorbed into `dist' target. --- subr/pkg_install_pkgconfig.subr | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 subr/pkg_install_pkgconfig.subr (limited to 'subr/pkg_install_pkgconfig.subr') diff --git a/subr/pkg_install_pkgconfig.subr b/subr/pkg_install_pkgconfig.subr new file mode 100644 index 00000000..b46069a3 --- /dev/null +++ b/subr/pkg_install_pkgconfig.subr @@ -0,0 +1,16 @@ +# +# set -o errexit -o noglob are assumed. +# + +pkg_install_pkgconfig() { + local __; + for __ in $(find "${PWD}/../destdir" -name \*.pc); do + if grep -Eq '^libdir=[^$]+$' "${__}"; then + sed -i -e '/^libdir=[^$]\+$/s/^libdir=\(.\+\)$/libdir=${exec_prefix}\1/' \ + -e '/^exec_prefix=$/s/^.*$/exec_prefix=${prefix}/' \ + "${__}"; + fi; + done; +}; + +# vim:filetype=sh -- cgit v1.2.3