cgal: don't run post_install on non-cross

This commit is contained in:
Đoàn Trần Công Danh 2022-07-08 22:06:12 +07:00
parent 675fd6031e
commit a7d2c0ab06
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,9 @@ checksum=59464b1eaee892f2223ba570a7642892c999e29524ab102a6efd7c29c94a29f7
post_install() {
local _xusr="${XBPS_CROSS_BASE%%/}/usr"
if [ -z "$CROSS_BUILD" ]; then
return 0
fi
sed -i -e "
s,-I$_xusr/include\\([ \"]\\),\\1,g
s,-L$_xusr/lib\\([ \"]\\),\\1,g