summaryrefslogtreecommitdiffhomepage
path: root/vars
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-05-15 09:48:40 +0100
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-05-15 09:48:40 +0100
commit8a4e16ff3484e7395112e1a8888ee7c8eb176987 (patch)
tree3ba4e90cec38dd65bfe4d4a0b37893d887957aa8 /vars
parentdd9b89b3fafe8cb08c184fc74b5c2133cc658b6b (diff)
downloadmidipix_build-8a4e16ff3484e7395112e1a8888ee7c8eb176987.tar.bz2
midipix_build-8a4e16ff3484e7395112e1a8888ee7c8eb176987.tar.xz
Optionally install ${PKG_DESTDIR_HOST} into ${PREFIX}.
vars/libxslt.vars:pkg_libxslt_install_make_post(): install ${PREFIX}/bin/xslt-config into ${PKG_DESTDIR_HOST}/bin.
Diffstat (limited to 'vars')
-rw-r--r--vars/libxslt.vars8
1 files changed, 3 insertions, 5 deletions
diff --git a/vars/libxslt.vars b/vars/libxslt.vars
index 62b87174..b1341f1d 100644
--- a/vars/libxslt.vars
+++ b/vars/libxslt.vars
@@ -3,14 +3,12 @@
#
pkg_libxslt_install_make_post() {
- if [ -e "${PREFIX}/bin/xslt-config" ]\
- && ! rtl_fileop rm "${PREFIX}/bin/xslt-config"; then
+ if ! rtl_fileop mkdir "${PKG_DESTDIR_HOST}/bin"; then
return 1;
- fi;
- if ! sed '/^prefix=$/s,^prefix=$,prefix='"${PREFIX_NATIVE}"',' "${PREFIX_NATIVE}/bin/xslt-config" > "${PREFIX}/bin/xslt-config"; then
+ elif ! sed '/^prefix=$/s,^prefix=$,prefix='"${PREFIX_NATIVE}"',' "${PREFIX_NATIVE}/bin/xslt-config" > "${PKG_DESTDIR_HOST}/bin/xslt-config"; then
return 1;
else
- rtl_fileop chmod +x "${PREFIX}/bin/xslt-config";
+ rtl_fileop chmod +x "${PKG_DESTDIR_HOST}/bin/xslt-config";
fi;
};