summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD72
1 files changed, 33 insertions, 39 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3268464810d..a84b0f39db5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,49 +1,43 @@
+# Maintainer: Alex Talker
+# okular-frameworks-git:
+# Maintainer: Antonio Rojas
+# Contributor Martchus <martchus@gmx.net>
+
pkgname=okular-git
-pkgver=20140311
+pkgver=r7435.3a16c16
pkgrel=1
-pkgdesc='KDE document viewer'
-arch=('i686' 'x86_64')
-license=('GPL')
-url="http://kde.org/"
-depends=('kdebase-runtime' 'qimageblitz' 'poppler-qt' 'chmlib' \
- 'djvulibre' 'ebook-tools' 'libspectre')
-makedepends=('git' 'automoc4' 'cmake')
-conflicts=('kdegraphics-okular')
-provides=('kdegraphics-okular')
-groups=('kde4-git')
-
-_gitroot="git://anongit.kde.org/okular.git"
-_gitname="okular"
-
-build() {
+pkgdesc='Universal document viewer'
+arch=(i686 x86_64)
+url='http://kde.org/applications/graphics/okular/'
+license=(GPL)
+depends=(kpty 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://anongit.kde.org/okular.git')
+sha256sums=('SKIP')
-cd $srcdir
+pkgver() {
+ cd okular
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
- msg "Connecting to the GIT server..."
-
- if [[ -d $srcdir/$_gitname ]] ; then
- cd $_gitname
- git pull origin
- msg "The local files are updated."
- else
- git clone $_gitroot --depth=1
- fi
-
- msg "GIT checkout done"
- msg "Starting make..."
+prepare() {
+ mkdir -p build
+}
- if [[ -d $srcdir/$_gitname-build ]]; then
- msg "Cleaning the previous build directory..."
- rm -rf $srcdir/$_gitname-build
- fi
- mkdir $srcdir/$_gitname-build
- cd $srcdir/$_gitname-build
- cmake $srcdir/$_gitname -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr
+build() {
+ cd build
+ cmake ../okular \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DKDE_INSTALL_LIBDIR=lib
make
}
package() {
- cd $srcdir/$_gitname-build
- make DESTDIR=${pkgdir} install
+ cd build
+ make DESTDIR="$pkgdir" install
}