blob: 77597e4d90eb38467d3f3fcb28f57ce1f6725360 (
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
47
48
49
50
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=okular
pkgver=19.08.1
pkgrel=0
arch="all"
url="https://kde.org/applications/office/org.kde.okular"
pkgdesc="A universal document viewer"
license="GPL-2.0-or-later AND LGPL-2.0-or-later"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtspeech-dev karchive-dev
kbookmarks-dev kcompletion-dev kconfig-dev kconfigwidgets-dev
kcoreaddons-dev kcrash-dev kiconthemes-dev kio-dev kparts-dev
threadweaver-dev kwindowsystem-dev kdoctools-dev kjs-dev kwallet-dev
kactivities-dev phonon-dev purpose-dev zlib-dev poppler-qt5-dev
kirigami2-dev qca-dev kpty-dev"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/applications/$pkgver/src/okular-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang $pkgname-mobile"
build() {
cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_OKULARKIRIGAMI=ON \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS -D_GNU_SOURCE"
make
}
check() {
# All other tests are broken, require OpenGL, etc
CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -R "^shelltest"
}
package() {
DESTDIR="$pkgdir" make install
}
mobile() {
depends="kirigami2"
mkdir -p "$subpkgdir"/usr/bin
mkdir -p "$subpkgdir"/usr/share/applications
mv "$pkgdir"/usr/bin/okularkirigami "$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/share/applications/org.kde.okular.kirigami.desktop "$subpkgdir"/usr/share/applications/
mv "$pkgdir"/usr/share/applications/org.kde.mobile.okular_plucker.desktop "$subpkgdir"/usr/share/applications/
}
sha512sums="ba157b51137404357844315757c851dffa691e1192272107464bb2cc1f39c0880127e1ee669d5e65f0927a22c0e273718202d758b9fa857a67b2eb3cd772bfc9 okular-19.08.1.tar.xz"
|