# Contributor: holos # Contributor: Michael Witten # Contributor: Vladimir Gorbunov # Contributor: Earnest # Contributor: Attila Toth # Contributor: Flu # Contributor: menta # Contributor: hero # Maintainer: aksr pkgname=llpp-git pkgver=31.r24.gc79a0b8 pkgrel=1 pkgdesc='A graphical PDF viewer which aims to superficially resemble less(1).' arch=('i686' 'x86_64') url="http://repo.or.cz/w/llpp.git" license=('custom') provides=('llpp') conflicts=('llpp') depends=('mupdf' 'freetype2' 'jbig2dec' 'openjpeg2' 'libgl' 'libjpeg-turbo' 'glu' 'desktop-file-utils') makedepends=('git' 'libmupdf' 'mupdf>=1.7' 'ocaml>=4.04' 'asciidoc' 'xmlto') source=("$pkgname::git+git://repo.or.cz/llpp.git") sha256sums=('SKIP') # Dictionary lookup: http://repo.or.cz/llpp.git/commit/29916e0cadcdf0ee3136fc3b4655b3c8b0d01a7b optdepends=( 'xsel: text selection' 'xclip: text selection' 'sdcv: dictionary lookup' 'rofi: dictionary lookup' 'adobe-source-code-pro-fonts: recommended font for dictionary lookup presentation (any font can be used)' 'wget: llppac fetch remote urls (preferred)' 'curl: llppac fetch remote urls (alternative)' 'file: llppac automatic file type recognition' 'xz: llppac xz archives' 'gzip: llppac gzip archives' 'bzip2: llppac bzip2 archives' 'zip: llppac png and jpeg conversion' 'djvulibre: llppac djvu conversion' 'ghostscript: llppac postscript, dvi, and djvu conversion' 'prince: llppac html conversion' 'unoconv: llppac office document conversion' 'antiword: llppac .doc conversion (alternative)' 'inkscape: llppac svg conversion (preferred)' 'librsvg: llppac svg conversion (alternative)' 'imagemagick: llppac image conversion' 'pango: llppac font conversion' 'pandoc: llppac text conversion' 'texlive-core: llppac dvi conversion' ) options=('!strip') pkgver() { cd "$srcdir/$pkgname" git describe --tags | sed 's/^v//;s/-/.r/;s/-/./' } prepare() { cd "$srcdir/$pkgname" # /usr/lib/libharfbuzz.so.0: error adding symbols: DSO missing from command line sed -i -e 's@-lmupdf@-lmupdf -lharfbuzz@' build.bash } build() { cd "$srcdir/$pkgname" mkdir build && sh misc/getmupdf.sh build/mupdf ./build.bash build } package() { cd "$srcdir/$pkgname" install -Dm755 build/llpp $pkgdir/usr/bin/llpp #install -Dm644 misc/llpp.desktop $pkgdir/usr/share/applications/llpp.desktop install -Dm644 README $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE # helper scripts cd misc/ for i in cutrel llpp.inotify llppac llpphtml; do install -Dm755 $i $pkgdir/usr/bin/$i done # custom key bindings: https://wiki.archlinux.org/index.php/Llpp#Custom_key_bindings install -Dm644 keys.txt "$pkgdir/usr/share/${pkgname%-*}/keys.txt" # CSS styles for i in prince.css; do install -Dm644 $i "$pkgdir/usr/share/${pkgname%-*}/$i" done # Wikipedia install -Dm755 wikipedia/wpget "$pkgdir/usr/share/${pkgname%-*}/wpget" install -Dm644 wikipedia/wiki2.css "$pkgdir/usr/share/${pkgname%-*}/wiki2.css" # shell completion cd completions/ install -Dm644 zsh/_llpp "$pkgdir/usr/share/zsh/site-functions/_llpp" install -Dm644 zsh/_llppac "$pkgdir/usr/share/zsh/site-functions/_llppac" }