Install zeal on ubuntu16.04

Dash is a helpful software for macOS users. For Windows and Linux users, zeal is the open-source counterpart.

To install the latest zeal on ubuntu, we have to build it from scratch, or use ppa reopsitory. Since there's something wrong with my network to use that ppa repository, I manually build it. The whole scripts content is:

cd ~/work

git clone https://github.com/zealdocs/zeal

sudo apt install extra-cmake-modules qt5-default libqt5webkit5-dev libarchive-dev libqt5x11extras5-dev libxcb-keysyms1-dev libsqlite3-dev

mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/zeal
make -j8
sudo make install


sudo vim /usr/share/zeal.desktop

and the content of zeal.desktop is:

[Desktop Entry]
Version=1.0
Name=Zeal
GenericName=Documentation Browser
Comment=Simple API documentation browser
Exec=/usr/local/zeal/bin/zeal %u
Icon=//usr/local/zeal/share/icons/hicolor/64x64/apps/zeal.png
Terminal=false
Type=Application
Categories=Development;
MimeType=x-scheme-handler/dash;x-scheme-handler/dash-plugin;
posted @ 2018-06-20 15:01  ChrisZZ  阅读(350)  评论(0编辑  收藏  举报