xmake: Fix build for ntfs-3g package

This commit is contained in:
remittor
2024-12-05 11:24:40 +03:00
parent 6151c61f9a
commit 3ef32a3aeb

View File

@@ -208,6 +208,15 @@ function build_target {
sed -i '/"admin\/system\/users" : {/a "title": "Users",' $USERS_MENU
fi
fi
fi
NTFS3G=$XDIR/package/feeds/packages/ntfs-3g/Makefile
if [ -f $NTFS3G ]; then
if grep -q -F '$(INSTALL_DIR) $(1)/usr/{bin,sbin}' $NTFS3G ; then
sed -i '/\$(INSTALL_DIR) \$(1)\/usr\/{bin,sbin}/a \\t\$(INSTALL_DIR) \$(1)\/usr\/bin' $NTFS3G
sed -i '/\$(INSTALL_DIR) \$(1)\/usr\/{bin,sbin}/a \\t\$(INSTALL_DIR) \$(1)\/usr\/sbin' $NTFS3G
sed -i 's/\$(INSTALL_DIR) \$(1)\/usr\/{bin,sbin}/#\$(INSTALL_DIR) \$(1)\/usr\/__bin_sbin__/g' $NTFS3G
fi
fi
OPKG_DIR=$XDIR/files/etc/opkg