pkgname=okular pkgver=24.04.80 pkgrel=1 pkgdesc="Document Viewer" arch=('x86_64') url="https://apps.kde.org/okular" license=('GPL-2.0-or-later' 'LGPL-2.0-or-later') groups=('kde-applications' 'kde-graphics') depends=('discount' 'djvulibre' 'freetype2' 'gcc-libs' 'glibc' 'plasma-activities' 'karchive' 'kbookmarks' 'kcolorscheme' 'kcompletion' 'kconfig' 'kconfigwidgets' 'kcoreaddons' 'kcrash' 'ki18n' 'kio' 'kitemviews' 'kparts' 'kpty' 'ktextwidgets' 'kwallet' 'kwidgetsaddons' 'kwindowsystem' 'kxmlgui' 'libjpeg-turbo' 'libkexiv2' 'libspectre' 'libtiff' 'phonon' 'poppler-qt6' 'purpose' 'qt6-qtbase' 'qt6-qtdeclarative' 'qt6-qtspeech' 'qt6-qtsvg' 'threadweaver' 'zlib') makedepends=('extra-cmake-modules' 'cmake' 'ninja' 'kdoctools' 'ebook-tools' 'kdegraphics-mobipocket') options=('!zipman') source=(https://download.kde.org/unstable/release-service/${pkgver}/src/${pkgname}-${pkgver}.tar.xz) sha256sums=(4b8081b0b7531c8ef0d9f534be9693920cb893cd1952ee148f94d5f1770042fa) build() { cd ${pkgname}-${pkgver} cmake -G Ninja -B flarebird-build -Wno-dev \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_TESTING=OFF ninja -C build } package() { cd ${pkgname}-${pkgver} DESTDIR=${pkgdir} ninja -C build install }