blob: 7d621d8f07ee2b172b4bc51721d8cfca6a00a8c4 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>
# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-applications
pkgname=okular
pkgver=24.02.2
pkgrel=0
# armhf blocked by extra-cmake-modules
# ppc64le, s390x, riscv64 and loongarch64 blocked by qt5-qtwebengine -> purpose
arch="all !armhf !ppc64le !s390x !riscv64 !loongarch64"
url="https://okular.kde.org/"
pkgdesc="A universal document viewer"
license="GPL-2.0-or-later AND LGPL-2.0-or-later"
depends="$pkgname-common"
makedepends="
discount-dev
djvulibre-dev
ebook-tools-dev
extra-cmake-modules
karchive-dev
kbookmarks-dev
kcompletion-dev
kconfig-dev
kconfigwidgets-dev
kcoreaddons-dev
kcrash-dev
kdegraphics-mobipocket-dev
kdoctools-dev
kiconthemes-dev
kio-dev
kirigami-dev
kparts-dev
kpty-dev
kwallet-dev
kwindowsystem-dev
libkexiv2-dev
libspectre-dev
phonon-dev
plasma-activities-dev
poppler-qt5-dev
purpose-dev
qca-dev
qt6-qtbase-dev
qt6-qtspeech-dev
qt6-qtsvg-dev
samurai
threadweaver-dev
zlib-dev
"
checkdepends="xvfb-run"
_repo_url="https://invent.kde.org/graphics/okular.git"
source="https://download.kde.org/stable/release-service/$pkgver/src/okular-$pkgver.tar.xz"
subpackages="
$pkgname-common
$pkgname-common-qml:common_qml
$pkgname-dev
$pkgname-doc
$pkgname-lang
$pkgname-mobile
"
build() {
CFLAGS="$CFLAGS -D_GNU_SOURCE" \
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DOKULAR_UI=both \
-DFORCE_NOT_REQUIRED_DEPENDENCIES="CHM;KExiv2Qt6"
# TODO: remove KExiv2Qt6 from not required dependencies
cmake --build build
}
check() {
# All other tests are broken, require OpenGL, etc
xvfb-run ctest --test-dir build --output-on-failure -R "^shelltest"
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
common() {
pkgdesc="Common files for okular and okular-mobile"
amove usr/lib/qt6/plugins
find "$pkgdir"/usr -name "libOkular6Core.so.*" -exec mv {} "$subpkgdir"/usr/lib/ +
amove usr/share/okular
amove usr/share/config.kcfg
amove usr/share/qlogging-categories6
amove usr/share/icons
amove usr/share/metainfo
amove usr/share/kconf_update
}
common_qml() {
pkgdesc="Common qml files for okular-mobile and other packages"
depends="kirigami"
amove usr/lib/qt6/qml
}
mobile() {
depends="
$pkgname-common
$pkgname-common-qml
kirigami-addons
kitemmodels
"
amove usr/bin/okularkirigami
amove usr/share/applications/org.kde.okular.kirigami.desktop
amove usr/share/applications/org.kde.mobile*
}
sha512sums="
86cc798a867a711114cc80ad90fb3871a9db38578975699a341614d5c8600a6baec83c04eb6a8bb8c306c89f222e41b7c227c54a7028dfada8fb01e0179358c6 okular-24.02.2.tar.xz
"
|