summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Figueiredo2021-04-30 13:32:14 +0100
committerJoão Figueiredo2021-04-30 13:32:14 +0100
commit832ee4763c81de44a7dd0bb732b6b29d15959d2e (patch)
treefe93913a32f5e10ff8810b3f3e898ab03f1579b6
parent14f8ba3b1157e6ac19a45b6b7dbe2d15f52781bb (diff)
downloadaur-832ee4763c81de44a7dd0bb732b6b29d15959d2e.tar.gz
Merged with official ABS okular PKGBUILD
-rw-r--r--.SRCINFO52
-rw-r--r--PKGBUILD60
2 files changed, 57 insertions, 55 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 23bf4b08869..cd734215947 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,38 +1,44 @@
pkgbase = okular-git
- pkgdesc = Universal document viewer
- pkgver = 20.08.1.r120.gd78e2ff9e
+ pkgdesc = Document Viewer
+ pkgver = 21.07.70_r9293.g97264b534
pkgrel = 1
- url = http://kde.org/applications/graphics/okular/
- arch = i686
+ url = https://kde.org/applications/graphics/okular/
arch = x86_64
+ groups = kde-applications-git
+ groups = kde-graphics-git
license = GPL
- makedepends = extra-cmake-modules
- makedepends = kdoctools
+ license = LGPL
+ license = FDL
makedepends = git
- makedepends = python
+ makedepends = extra-cmake-modules-git
makedepends = ebook-tools
- makedepends = qca-qt5
- depends = kpty
- depends = kirigami2
- depends = discount
- depends = kdegraphics-mobipocket
- depends = purpose
- depends = threadweaver
- depends = kactivities
- depends = khtml
- depends = chmlib
+ makedepends = kdegraphics-mobipocket-git
+ makedepends = kdoctools-git
+ makedepends = khtml-git
+ makedepends = chmlib
depends = djvulibre
depends = libspectre
+ depends = libkexiv2-git
depends = poppler-qt5
- depends = libkexiv2
+ depends = kpty-git
+ depends = kactivities-git
+ depends = threadweaver-git
+ depends = kjs-git
+ depends = kparts-git
+ depends = purpose-git
+ depends = discount
+ depends = phonon-qt5-git
optdepends = ebook-tools: mobi and epub support
- optdepends = qca-qt5: support for encrypted ODF documents
+ optdepends = kdegraphics-mobipocket-git: mobi support
+ optdepends = libzip: CHM support
+ optdepends = khtml-git: CHM support
+ optdepends = chmlib: CHM support
+ optdepends = calligra: ODT and ODP support
+ optdepends = unrar: Comic Book Archive support
+ optdepends = unarchiver: Comic Book Archive support (alternative)
provides = okular
- conflicts = kdegraphics-okular
conflicts = okular
- conflicts = okular-frameworks-git
- replaces = okular-frameworks-git
- source = git+https://invent.kde.org/graphics/okular.git
+ source = git+https://github.com/KDE/okular.git
sha256sums = SKIP
pkgname = okular-git
diff --git a/PKGBUILD b/PKGBUILD
index 2ff6b819af0..1f21e944a33 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,44 +1,40 @@
-# Maintainer: Alex Talker
-# okular-frameworks-git:
-# Maintainer: Antonio Rojas
-# Contributor Martchus <martchus@gmx.net>
+# Merged with official ABS okular PKGBUILD by João, 2021/04/30 (all respective contributors apply herein)
+# Maintainer: João Figueiredo <jf.mundox@gmail.com>
+# Contributor: Alex Talker
pkgname=okular-git
-pkgver=20.08.1.r120.gd78e2ff9e
+pkgver=21.07.70_r9293.g97264b534
pkgrel=1
-pkgdesc='Universal document viewer'
-arch=(i686 x86_64)
-url='http://kde.org/applications/graphics/okular/'
-license=(GPL)
-depends=(kpty kirigami2 discount kdegraphics-mobipocket purpose threadweaver kactivities khtml chmlib djvulibre libspectre poppler-qt5 libkexiv2)
-makedepends=(extra-cmake-modules kdoctools git python ebook-tools qca-qt5)
-optdepends=('ebook-tools: mobi and epub support'
- 'qca-qt5: support for encrypted ODF documents')
-conflicts=(kdegraphics-okular okular okular-frameworks-git)
-provides=(okular)
-replaces=(okular-frameworks-git)
-source=('git+https://invent.kde.org/graphics/okular.git')
+pkgdesc='Document Viewer'
+arch=($CARCH)
+url="https://kde.org/applications/graphics/okular/"
+license=(GPL LGPL FDL)
+groups=(kde-applications-git kde-graphics-git)
+depends=(djvulibre libspectre libkexiv2-git poppler-qt5 kpty-git kactivities-git threadweaver-git kjs-git kparts-git purpose-git discount phonon-qt5-git)
+makedepends=(git extra-cmake-modules-git ebook-tools kdegraphics-mobipocket-git kdoctools-git khtml-git chmlib)
+conflicts=(${pkgname%-git})
+provides=(${pkgname%-git})
+optdepends=('ebook-tools: mobi and epub support'
+ 'kdegraphics-mobipocket-git: mobi support' 'libzip: CHM support'
+ 'khtml-git: CHM support' 'chmlib: CHM support' 'calligra: ODT and ODP support'
+ 'unrar: Comic Book Archive support' 'unarchiver: Comic Book Archive support (alternative)')
+source=("git+https://github.com/KDE/${pkgname%-git}.git")
sha256sums=('SKIP')
pkgver() {
- cd okular
- git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
-}
-
-prepare() {
- mkdir -p build
-}
+ cd ${pkgname%-git}
+ _major_ver="$(grep -m1 'set *(RELEASE_SERVICE_VERSION_MAJOR' CMakeLists.txt | cut -d '"' -f2)"
+ _minor_ver="$(grep -m1 'set *(RELEASE_SERVICE_VERSION_MINOR' CMakeLists.txt | cut -d '"' -f2)"
+ _micro_ver="$(grep -m1 'set *(RELEASE_SERVICE_VERSION_MICRO' CMakeLists.txt | cut -d '"' -f2)"
+ echo "${_major_ver}.${_minor_ver}.${_micro_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
+ }
build() {
- cd build
- cmake ../okular \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=RelWithDebInfo \
- -DKDE_INSTALL_LIBDIR=lib
- make
+ cmake -B build -S ${pkgname%-git} \
+ -DBUILD_TESTING=OFF
+ cmake --build build
}
package() {
- cd build
- make DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" cmake --install build
}