This is a Kodi VFS addon to extract RAR archives or direct playback stored files in RAR archives.
When building the addon you have to use the correct branch depending on which version of Kodi you're building against.
For example, if you're building the master
branch of Kodi you should checkout the master
branch of this repository.
Also make sure you follow this README from the branch in question.
The following instructions assume you will have built Kodi already in the kodi-build
directory
suggested by the README.
git clone https://github.com/xbmc/xbmc.git
git clone https://github.com/notspiff/vfs.rar.git
cd vfs.rar && mkdir build && cd build
cmake -DADDONS_TO_BUILD=vfs.rar -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/kodi-build/addons -DPACKAGE_ZIP=1 ../../xbmc/cmake/addons
make
The addon files will be placed in ../../xbmc/kodi-build/addons
so if you build Kodi from source and run it directly
the addon will be available as a system addon.