summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aaab2f61c532c4f815ef54b7836890b34ed62d1b (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
46
# Maintainer:
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Jonathan Steel <jsteel at archlinux.org>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Brad Fanella <bradfanella@archlinux.us>
# Contributor: tocer.deng <tocer.deng@gmail.com>

pkgname=apvlv
pkgver=0.5.0
pkgrel=1
pkgdesc="A PDF/DJVU/EPUB viewer which behaves like Vim"
arch=('x86_64')
url="https://github.com/naihe2010/apvlv"
license=('GPL-2.0-or-later')
depends=('cairo'
         'djvulibre'
         'ebook-tools'
         'gcc-libs'
         'gdk-pixbuf2'
         'glib2'
         'glibc'
         'gtk3'
         'libxml2'
         'pango'
         'poppler-glib'
         'webkit2gtk')
backup=('etc/apvlvrc')
makedepends=('cmake' 'freetype2' 'ghostscript')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}-final.tar.gz")
sha256sums=('d98edf23c3da0704bf85d07bfa4477393af3824e1fa8b1e28e69997bb84732b2')

build() {
  cmake -B build -S "${pkgname}-${pkgver}-final" \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DAPVLV_WITH_DJVU=ON \
    -Wno-dev
  cmake --build build
}

package() {
  DESTDIR="${pkgdir}" cmake --install build

  install -d "${pkgdir}/usr/share/man/man1"
  mv "${pkgdir}/usr/share/man/apvlv.1" "${pkgdir}/usr/share/man/man1"
}