Homebrew formulae to install zathura and plugins on Mac OS X.
brew tap pw4ever/homebrew-zathura
This reason of existence for this repo is to allow brew install --HEAD
for all formulae to track latest upstream development.
for n in girara zathura; do
brew install --HEAD $n
done
mkdir -p $(brew --prefix zathura)/lib/zathura
for n in pdf-poppler ps cb djvu; do
z="zathura-$n"
l="lib${n}.dylib"
brew install --HEAD "$z"
ln -s $(brew --prefix "$z")/"$l" $(brew --prefix zathura)/lib/zathura/"$l"
done
brew tap zegervdv/zathura
brew install zathura
For poppler:
$ brew install zathura-pdf-poppler
$ mkdir -p $(brew --prefix zathura)/lib/zathura
$ ln -s $(brew --prefix zathura-pdf-poppler)/libpdf-poppler.dylib $(brew --prefix zathura)/lib/zathura/libpdf-poppler.dylib
For mupdf:
$ brew install zathura-pdf-mupdf
$ mkdir -p $(brew --prefix zathura)/lib/zathura
$ ln -s $(brew --prefix zathura-pdf-mupdf)/libpdf-mupdf.dylib $(brew --prefix zathura)/lib/zathura/libpdf-mupdf.dylib
The OSX native integration (dock, window manager) has been added to the develop branch of zathura. You can install it by
# unlink installed zathura and girara
brew unlink girara
brew unlink zathura
# install HEAD
brew install girara --HEAD
brew install zathura --HEAD
mkdir -p $(brew --prefix zathura)/lib/zathura
ln -s $(brew --prefix zathura-pdf-poppler)/libpdf-poppler.dylib $(brew --prefix zathura)/lib/zathura/libpdf-poppler.dylib
Add the following to your ~/.config/zathura/zathurarc
:
set selection-clipboard clipboard
If you are seeing errors like this:
error: Can not copy to temporary file: Operation not supported
Try using an absolute path to the document:
$ zathura document.pdf
error: Can not copy to temporary file: Operation not supported
# Try:
$ zathura /path/to/document.pdf
Currently plugins are installed in the zathura folder, which means that uninstalling a plugin does not work.