summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bb4a602e21c0fd5ef4851380a2a259011fee0fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: valoq <valoq@mailbox.org>

pkgname=zathura-seccomp
pkgver=0.3.7
pkgrel=1

pkgdesc="Sandboxed zathura document viewer with seccomp filter"
url="http://pwmt.org/projects/zathura/"
arch=('i686' 'x86_64')
license=('custom')
conflicts=(zathura)

makedepends=('python2-docutils' 'texlive-bin')
depends=('girara>=0.2.7' 'sqlite' 'desktop-file-utils' 'file' 'libsynctex')
optdepends=('zathura-djvu: DjVu support'
            'zathura-pdf-poppler: PDF support using Poppler'
            'zathura-pdf-mupdf: PDF support using MuPDF'
            'zathura-ps: PostScript support'
            'zathura-cb: Comic book support')

source=(https://pwmt.org/projects/zathura/download/zathura-$pkgver.tar.gz
        bash-completion
	seccomp.patch)

sha1sums=('51935ae1781712b9dc8baed7698c2fa900bcf4fa'
          '94a8236c483626a7f3acee053a1ea885aed45a82'
          '8be49c0cf039e6305b096512927fce20c4a4649d')

prepare() {
  # apply seccomp patch
  patch -Np1 < "${srcdir}/seccomp.patch"
}

build() {
  cd zathura-$pkgver
  make WITH_SYNCTEX=1
}

package() {
  cd zathura-$pkgver

  make install DESTDIR="$pkgdir"
  install -D -m664 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
  install -Dm0644 "$srcdir"/bash-completion "$pkgdir"/usr/share/bash-completion/completions/zathura
}