diff options
Diffstat (limited to 'vars')
-rw-r--r-- | vars/libxslt.vars | 8 |
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; }; |