archrelease: copy trunk to extra-x86_64
[arch-packages.git] / okular / trunk / PKGBUILD
blobdab111dd64fc8ab40b83b13273f243524a5b350c
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
5 pkgname=okular
6 pkgver=23.04.1
7 pkgrel=1
8 pkgdesc='Document Viewer'
9 arch=(x86_64)
10 url='https://apps.kde.org/okular/'
11 license=(GPL LGPL FDL)
12 groups=(kde-applications kde-graphics)
13 depends=(djvulibre libspectre libkexiv2 poppler-qt5 kpty kactivities threadweaver kjs kparts purpose discount phonon-qt5)
14 makedepends=(extra-cmake-modules ebook-tools kdegraphics-mobipocket kdoctools khtml chmlib)
15 optdepends=('ebook-tools: mobi and epub support'
16             'kdegraphics-mobipocket: mobi support' 'libzip: CHM support'
17             'khtml: CHM support' 'chmlib: CHM support' 'calligra: ODT and ODP support'
18             'unrar: Comic Book Archive support' 'unarchiver: Comic Book Archive support (alternative)'
19             'kde-cli-tools: to configure web shortcuts' 'plasma-workspace: to configure web shortcuts')
20 source=(https://download.kde.org/stable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig})
21 sha256sums=('1cc470f8695d9ac53163071aa8b78885efe813df77fb6456cd0946d3309c1db7'
22             'SKIP')
23 validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aacid@kde.org>
24               F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87  # Christoph Feck <cfeck@kde.org>
25               D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker <heiko.becker@kde.org>
26 options=(!zipman)
28 build() {
29   cmake -B build -S $pkgname-$pkgver \
30     -DBUILD_TESTING=OFF
31   cmake --build build
34 package() {
35   DESTDIR="$pkgdir" cmake --install build