Topic: Missing djvu viewer
The djvulibre library is packaged but the viewer djview is missing. Thankfully, it can be easily installed using Arch's PKGBUILD (after renaming one of the dependencies).
PKGBUILD
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Paulo Matias <matias.archlinux-br.org>
# Contributor: Leslie P. Polzer <polzer.gnu.org>
# Contributor: erm67 <erm67.yahoo.it>
# Contributor: Daniel J Griffiths
# Contributor: Gaetan Bisson <bisson@archlinux.org>
pkgname=djview
pkgver=4.12
pkgrel=4
pkgdesc='Viewer for DjVu documents'
arch=('x86_64')
url='http://djvu.sourceforge.net/djview4.html'
license=('GPL2')
depends=('qt5-base' 'djvulibre')
makedepends=('qt-tools')
source=("https://downloads.sourceforge.net/djvu/$pkgname-$pkgver.tar.gz"
'djvulibre-djview4.appdata.xml')
sha256sums=('5673c6a8b7e195b91a1720b24091915b8145de34879db1158bc936b100eaf3e3'
'6527ff07bf11f3f2b7c79a97c5617d445343040ae070d18b52cfd4f91434c119')
prepare() {
cd ${pkgname}4-$pkgver
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd ${pkgname}4-$pkgver
./configure --prefix=/usr --disable-nsdejavu
make
}
package() {
cd ${pkgname}4-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 ../djvulibre-djview4.appdata.xml "$pkgdir/usr/share/metainfo/djvulibre-djview4.appdata.xml"
ln -s djview "$pkgdir/usr/bin/djview4"
}
djvulibre-djview4.appdata.xml
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>net.sourceforge.djvu.DjView4</id>
<launchable type="desktop-id">djvulibre-djview4.desktop</launchable>
<name>DjView4</name>
<summary>Viewer for DjVu documents</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0</project_license>
<developer_name>Léon Bottou</developer_name>
<description>
<p>DjView4 is a portable DjVu viewer</p>
<p>Highlights:</p>
<ul>
<li>Entirely based on the public djvulibre api.</li>
<li>Entirely written in portable Qt4/Qt5.</li>
<li>Works natively under Unix/X11, MS Windows, and MacOS X.</li>
<li>Continuous scrolling of pages</li>
<li>Side-by-side display of pages</li>
<li>Ability to specify a url to the djview command</li>
<li>All plugin and cgi options available from the command line</li>
<li>All silly annotations implemented</li>
<li>Display thumbnails as a grid</li>
<li>Display outlines</li>
<li>Page names supported (see djvused command set-page-title)</li>
<li>Metadata dialog (see djvused command set-meta)</li>
<li>Implemented as reusable Qt widgets</li>
</ul>
</description>
<screenshots>
<screenshot type="default">
<image>https://a.fsdn.com/con/app/proj/djvu/screenshots/djview.jpg</image>
</screenshot>
</screenshots>
<url type="bugtracker">https://sourceforge.net/p/djvu/bugs/</url>
<url type="homepage">http://djvu.sourceforge.net/djview4.html</url>
<update_contact>leon@bottou.org</update_contact>
</component>