[arch-commits] Commit in kdegraphics-okular/trunk (2 files)
Andrea Scarpino
andrea at archlinux.org
Mon Jul 25 00:12:14 UTC 2011
Date: Sunday, July 24, 2011 @ 20:12:14
Author: andrea
Revision: 132572
move pkgbuilds to trunk; cleanup
Added:
kdegraphics-okular/trunk/PKGBUILD
(from rev 132557, kdegraphics-okular/kde-unstable/PKGBUILD)
kdegraphics-okular/trunk/kdegraphics-okular.install
(from rev 132557, kdegraphics-okular/kde-unstable/kdegraphics-okular.install)
----------------------------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
kdegraphics-okular.install | 12 ++++++++++++
2 files changed, 46 insertions(+)
Copied: kdegraphics-okular/trunk/PKGBUILD (from rev 132557, kdegraphics-okular/kde-unstable/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2011-07-25 00:12:14 UTC (rev 132572)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kdegraphics-okular
+pkgver=4.7.0
+pkgrel=1
+pkgdesc='Document Viewer'
+arch=('i686' 'x86_64')
+url="http://kde.org/applications/graphics/okular/"
+license=('GPL' 'LGPL' 'FDL')
+groups=('kde' 'kdegraphics')
+depends=('kdebase-runtime' 'qimageblitz' 'poppler-qt' 'chmlib' 'djvulibre'
+ 'ebook-tools' 'libspectre')
+makedepends=('pkgconfig' 'cmake' 'automoc4')
+optdepends=('kdegraphics-mobipocket: mobipocket support')
+install=${pkgname}.install
+source=("http://download.kde.org/stable/${pkgver}/src/okular-${pkgver}.tar.bz2")
+sha1sums=('3fb935d79c2c24af9ea2874dbdb88f46d82154c2')
+
+build() {
+ cd "${srcdir}"
+ mkdir build
+ cd build
+ cmake ../okular-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}"/build
+ make DESTDIR="${pkgdir}" install
+}
Copied: kdegraphics-okular/trunk/kdegraphics-okular.install (from rev 132557, kdegraphics-okular/kde-unstable/kdegraphics-okular.install)
===================================================================
--- kdegraphics-okular.install (rev 0)
+++ kdegraphics-okular.install 2011-07-25 00:12:14 UTC (rev 132572)
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
More information about the arch-commits
mailing list