summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Talker2015-06-23 19:05:42 +0300
committerAlex Talker2015-06-23 19:05:42 +0300
commit522fb623a03071fabf26fc5a3bb9ea4e21e98b87 (patch)
tree0dda8aa43f13af98737a2bcb86fd24e46c06ef9e
downloadaur-522fb623a03071fabf26fc5a3bb9ea4e21e98b87.tar.gz
Initial import
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD49
2 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d9af7236bbf
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = okular-git
+ pkgdesc = KDE document viewer
+ pkgver = 20140311
+ pkgrel = 1
+ url = http://kde.org/
+ arch = i686
+ arch = x86_64
+ groups = kde4-git
+ license = GPL
+ makedepends = git
+ makedepends = automoc4
+ makedepends = cmake
+ depends = kdebase-runtime
+ depends = qimageblitz
+ depends = poppler-qt
+ depends = chmlib
+ depends = djvulibre
+ depends = ebook-tools
+ depends = libspectre
+ provides = kdegraphics-okular
+ conflicts = kdegraphics-okular
+
+pkgname = okular-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3268464810d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+pkgname=okular-git
+pkgver=20140311
+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() {
+
+cd $srcdir
+
+ 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..."
+
+ 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
+ make
+}
+
+package() {
+ cd $srcdir/$_gitname-build
+ make DESTDIR=${pkgdir} install
+}