--- zim-tools.old/README.md +++ zim-tools/README.md @@ -28,6 +28,10 @@ opened with a ZIM reader; [Kiwix](https://kiwix.org) is one example, but there are [others](https://openzim.org/wiki/ZIM_Readers). +* `zimfuse` creates a filesystem FUSE module that enables access to + the content of a [ZIM](https://openzim.org) file, allowing users to + view entries as files. + A few other tools are provided as well but are of less value for most of the usages. @@ -57,6 +61,8 @@ * [Gumbo](https://github.com/google/gumbo-parser) (package `libgumbo-dev` on Debian/Ubuntu) * [ICU](http://site.icu-project.org/) (package `libicu-dev` on Debian/Ubuntu) +`zimfuse` relies on [FUSE](https://github.com/libfuse/libfuse) (package `fuse3` on Debian/Ubuntu) + These dependencies may or may not be packaged by your operating system. They may also be packaged but only in an older version. The compilation script will tell you if one of them is missing or too old. --- zim-tools.old/meson.build +++ zim-tools/meson.build @@ -28,13 +28,14 @@ rt_dep = dependency('rt', required:false) docopt_dep = dependency('docopt', static:static_linkage) -with_writer = host_machine.system() != 'windows' +with_writer_and_mount = host_machine.system() != 'windows' -if with_writer +if with_writer_and_mount thread_dep = dependency('threads') zlib_dep = dependency('zlib', static:static_linkage) gumbo_dep = dependency('gumbo', static:static_linkage) magic_dep = dependency('libmagic', static:static_linkage, required:false) + libfuse_dep = dependency('fuse3', version : '>=3.1') # libmagic.pc has been introduced in version 5.39 of # File. Unfortunately Ubuntu 20.04 (Focal) still uses version --- zim-tools.old/src/meson.build +++ zim-too,s/src/meson.build @@ -36,6 +36,7 @@ subdir('zimcheck') -if with_writer +if with_writer_and_mount subdir('zimwriterfs') + subdir('zimfuse') endif